From ba5302631cb01f364563fb513d37740a82efbaf9 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 22 Jun 2017 15:53:47 +1000 Subject: Add a DefaultLexer class which lexers can subclass if they want reasonable default implementations of the ILexerWithSubStyles interface methods. --- lexers/LexJSON.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lexers/LexJSON.cxx') diff --git a/lexers/LexJSON.cxx b/lexers/LexJSON.cxx index 32b71926c..516aeb933 100644 --- a/lexers/LexJSON.cxx +++ b/lexers/LexJSON.cxx @@ -27,6 +27,7 @@ #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" +#include "DefaultLexer.h" #ifdef SCI_NAMESPACE using namespace Scintilla; @@ -128,7 +129,7 @@ struct OptionSetJSON : public OptionSet { } }; -class LexerJSON : public ILexer { +class LexerJSON : public DefaultLexer { OptionsJSON options; OptionSetJSON optSetJSON; EscapeSequence escapeSeq; -- cgit v1.2.3