diff options
author | nyamatongwe <unknown> | 2001-04-13 05:19:52 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-04-13 05:19:52 +0000 |
commit | c1bbb58a0b1f5bb352acf67afbae8d40e99e22eb (patch) | |
tree | 9a63f807ffa9cfce0689ed979832c666f24c0b30 /include/KeyWords.h | |
parent | 3e36fa6f3ea27bb64ce42bdd1a5b50b52dc6bb04 (diff) | |
download | scintilla-mirror-c1bbb58a0b1f5bb352acf67afbae8d40e99e22eb.tar.gz |
Added a string name to each lexer.
Made it possible for LexerModule to be subclassed so that its Lex and
Fold methods can be specialised to work across DLL boundaries.
Diffstat (limited to 'include/KeyWords.h')
-rw-r--r-- | include/KeyWords.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/KeyWords.h b/include/KeyWords.h index 43de26fe6..869b59d26 100644 --- a/include/KeyWords.h +++ b/include/KeyWords.h @@ -14,6 +14,7 @@ typedef void (*LexerFunction)(unsigned int startPos, int lengthDoc, int initStyl * module appropriate to a particular language. */ class LexerModule { +protected: LexerModule *next; int language; const char *languageName; @@ -27,9 +28,9 @@ public: LexerModule(int language_, LexerFunction fnLexer_, const char *languageName_=0, LexerFunction fnFolder_=0); int GetLanguage() { return language; } - void Lex(unsigned int startPos, int lengthDoc, int initStyle, + virtual void Lex(unsigned int startPos, int lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler); - void Fold(unsigned int startPos, int lengthDoc, int initStyle, + virtual void Fold(unsigned int startPos, int lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler); static LexerModule *Find(int language); static LexerModule *Find(const char *languageName); |