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
commitba5302631cb01f364563fb513d37740a82efbaf9 (patch)
tree4302ec9af8060a31b6aa5aff10aefac52d6a5afb /lexers/LexRegistry.cxx
parentf06c3555d0f7885f933b1cf4aaf7eff9ae80cc77 (diff)
downloadscintilla-mirror-ba5302631cb01f364563fb513d37740a82efbaf9.tar.gz
Add a DefaultLexer class which lexers can subclass if they want reasonable
default implementations of the ILexerWithSubStyles interface methods.
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;