aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexRegistry.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-06-22 15:53:47 +1000
committerNeil <nyamatongwe@gmail.com>2017-06-22 15:53:47 +1000
commite2ac8b7e987becbdeb6333f07d4627bce168cb55 (patch)
treec7bd572bf05f78de328606fee2d719b7be43c0a4 /lexers/LexRegistry.cxx
parentba1197944de6599dd02583455957be8ca9412eec (diff)
downloadscintilla-mirror-e2ac8b7e987becbdeb6333f07d4627bce168cb55.tar.gz
Backport: Add a DefaultLexer class which lexers can subclass if they want reasonable
default implementations of the ILexerWithSubStyles interface methods. Backport of changeset 6326:d18622e37a3e.
Diffstat (limited to 'lexers/LexRegistry.cxx')
-rw-r--r--lexers/LexRegistry.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexRegistry.cxx b/lexers/LexRegistry.cxx
index 43519e2e2..b02a0d265 100644
--- a/lexers/LexRegistry.cxx
+++ b/lexers/LexRegistry.cxx
@@ -27,6 +27,7 @@
#include "CharacterSet.h"
#include "LexerModule.h"
#include "OptionSet.h"
+#include "DefaultLexer.h"
#ifdef SCI_NAMESPACE
using namespace Scintilla;
@@ -53,7 +54,7 @@ struct OptionSetRegistry : public OptionSet<OptionsRegistry> {
}
};
-class LexerRegistry : public ILexer {
+class LexerRegistry : public DefaultLexer {
OptionsRegistry options;
OptionSetRegistry optSetRegistry;