aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHaskell.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/LexHaskell.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/LexHaskell.cxx')
-rw-r--r--lexers/LexHaskell.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexers/LexHaskell.cxx b/lexers/LexHaskell.cxx
index 26657830c..00e6b8cbf 100644
--- a/lexers/LexHaskell.cxx
+++ b/lexers/LexHaskell.cxx
@@ -41,6 +41,7 @@
#include "CharacterCategory.h"
#include "LexerModule.h"
#include "OptionSet.h"
+#include "DefaultLexer.h"
#ifdef SCI_NAMESPACE
using namespace Scintilla;
@@ -269,7 +270,7 @@ struct OptionSetHaskell : public OptionSet<OptionsHaskell> {
}
};
-class LexerHaskell : public ILexer {
+class LexerHaskell : public DefaultLexer {
bool literate;
Sci_Position firstImportLine;
int firstImportIndent;