aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ILexer.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-22 22:36:51 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-22 22:36:51 +1100
commiteed707bb9ad6da944af207a51e4a8d460d6c6846 (patch)
treeb504d202eea59088f3290d8c12d3307b17e88b93 /include/ILexer.h
parenta4bd72249722211f08ffa3e65c664a9ccbbc7f84 (diff)
downloadscintilla-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 'include/ILexer.h')
-rw-r--r--include/ILexer.h9
1 files changed, 8 insertions, 1 deletions
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