aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexPython.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/LexPython.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/LexPython.cxx')
-rw-r--r--lexers/LexPython.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx
index 97943ca24..50c3baa8c 100644
--- a/lexers/LexPython.cxx
+++ b/lexers/LexPython.cxx
@@ -30,6 +30,7 @@
#include "LexerModule.h"
#include "OptionSet.h"
#include "SubStyles.h"
+#include "DefaultLexer.h"
#ifdef SCI_NAMESPACE
using namespace Scintilla;
@@ -310,7 +311,7 @@ const char styleSubable[] = { SCE_P_IDENTIFIER, 0 };
}
-class LexerPython : public ILexerWithSubStyles {
+class LexerPython : public DefaultLexer {
WordList keywords;
WordList keywords2;
OptionsPython options;