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/LexVerilog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lexers/LexVerilog.cxx') diff --git a/lexers/LexVerilog.cxx b/lexers/LexVerilog.cxx index 28b8dfbdb..6be3392f1 100644 --- a/lexers/LexVerilog.cxx +++ b/lexers/LexVerilog.cxx @@ -31,6 +31,7 @@ #include "OptionSet.h" #include "SubStyles.h" +#include "DefaultLexer.h" #ifdef SCI_NAMESPACE using namespace Scintilla; @@ -172,7 +173,7 @@ const char styleSubable[] = {0}; } -class LexerVerilog : public ILexerWithSubStyles { +class LexerVerilog : public DefaultLexer { CharacterSet setWord; WordList keywords; WordList keywords2; -- cgit v1.2.3