diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-12-22 22:36:51 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-12-22 22:36:51 +1100 |
| commit | eed707bb9ad6da944af207a51e4a8d460d6c6846 (patch) | |
| tree | b504d202eea59088f3290d8c12d3307b17e88b93 /lexers/LexBaan.cxx | |
| parent | a4bd72249722211f08ffa3e65c664a9ccbbc7f84 (diff) | |
| download | scintilla-mirror-eed707bb9ad6da944af207a51e4a8d460d6c6846.tar.gz | |
Define ILexer5 with methods for retrieving name, ID, and property values.
Implement ILexer5 on object lexers.
Implement ILexer5 on LexerSimple wrapper for function lexers.
Diffstat (limited to 'lexers/LexBaan.cxx')
| -rw-r--r-- | lexers/LexBaan.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lexers/LexBaan.cxx b/lexers/LexBaan.cxx index c26b2fda1..80b4f40ab 100644 --- a/lexers/LexBaan.cxx +++ b/lexers/LexBaan.cxx @@ -393,14 +393,14 @@ class LexerBaan : public DefaultLexer { OptionsBaan options; OptionSetBaan osBaan; public: - LexerBaan() { + LexerBaan() : DefaultLexer("baan", SCLEX_BAAN) { } virtual ~LexerBaan() { } int SCI_METHOD Version() const override { - return lvRelease4; + return lvRelease5; } void SCI_METHOD Release() override { @@ -421,6 +421,10 @@ public: Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; + const char * SCI_METHOD PropertyGet(const char *key) override { + return osBaan.PropertyGet(key); + } + const char * SCI_METHOD DescribeWordListSets() override { return osBaan.DescribeWordListSets(); } @@ -435,7 +439,7 @@ public: return NULL; } - static ILexer4 * LexerFactoryBaan() { + static ILexer5 * LexerFactoryBaan() { return new LexerBaan(); } }; |
