aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexProgress.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/LexProgress.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/LexProgress.cxx')
-rw-r--r--lexers/LexProgress.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/lexers/LexProgress.cxx b/lexers/LexProgress.cxx
index aaa3d4b2d..c4a0e6a41 100644
--- a/lexers/LexProgress.cxx
+++ b/lexers/LexProgress.cxx
@@ -38,6 +38,7 @@ Differentiate between labels and variables
#include "LexerModule.h"
#include "OptionSet.h"
#include "SparseState.h"
+#include "DefaultLexer.h"
#ifdef SCI_NAMESPACE
using namespace Scintilla;
@@ -122,7 +123,7 @@ namespace {
};
}
-class LexerABL : public ILexer {
+class LexerABL : public DefaultLexer {
CharacterSet setWord;
CharacterSet setNegationOp;
CharacterSet setArithmethicOp;
@@ -172,7 +173,7 @@ public:
void * SCI_METHOD PrivateCall(int, void *) override {
return 0;
}
- int SCI_METHOD LineEndTypesSupported() {
+ int SCI_METHOD LineEndTypesSupported() override {
return SC_LINE_END_TYPE_DEFAULT;
}
static ILexer *LexerFactoryABL() {