aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexRegistry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/LexRegistry.cxx')
-rw-r--r--lexers/LexRegistry.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/lexers/LexRegistry.cxx b/lexers/LexRegistry.cxx
index 779ea2f47..acdaccebe 100644
--- a/lexers/LexRegistry.cxx
+++ b/lexers/LexRegistry.cxx
@@ -161,10 +161,10 @@ class LexerRegistry : public DefaultLexer {
}
public:
- LexerRegistry() {}
+ LexerRegistry() : DefaultLexer("registry", SCLEX_REGISTRY) {}
virtual ~LexerRegistry() {}
int SCI_METHOD Version() const override {
- return lvRelease4;
+ return lvRelease5;
}
void SCI_METHOD Release() override {
delete this;
@@ -184,13 +184,17 @@ public:
}
return -1;
}
+ const char * SCI_METHOD PropertyGet(const char *key) override {
+ return optSetRegistry.PropertyGet(key);
+ }
+
Sci_Position SCI_METHOD WordListSet(int, const char *) override {
return -1;
}
void *SCI_METHOD PrivateCall(int, void *) override {
return 0;
}
- static ILexer4 *LexerFactoryRegistry() {
+ static ILexer5 *LexerFactoryRegistry() {
return new LexerRegistry;
}
const char *SCI_METHOD DescribeWordListSets() override {