From eed707bb9ad6da944af207a51e4a8d460d6c6846 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 22 Dec 2019 22:36:51 +1100 Subject: Define ILexer5 with methods for retrieving name, ID, and property values. Implement ILexer5 on object lexers. Implement ILexer5 on LexerSimple wrapper for function lexers. --- include/ILexer.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ILexer.h b/include/ILexer.h index 9bc995c3d..bc9ee1ab5 100644 --- a/include/ILexer.h +++ b/include/ILexer.h @@ -42,7 +42,7 @@ public: virtual int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const = 0; }; -enum { lvRelease4=2 }; +enum { lvRelease4=2, lvRelease5=3 }; class ILexer4 { public: @@ -73,6 +73,13 @@ public: virtual const char * SCI_METHOD DescriptionOfStyle(int style) = 0; }; +class ILexer5 : public ILexer4 { +public: + virtual const char * SCI_METHOD GetName() = 0; + virtual int SCI_METHOD GetIdentifier() = 0; + virtual const char * SCI_METHOD PropertyGet(const char *key) = 0; +}; + } #endif -- cgit v1.2.3