aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-04-13 05:19:52 +0000
committernyamatongwe <devnull@localhost>2001-04-13 05:19:52 +0000
commitd268b6e3a8ea565b0c255c8ac45ca442b98a37f8 (patch)
tree9a63f807ffa9cfce0689ed979832c666f24c0b30 /include
parenta1008c54ed13feeb5d1a0dc3ebf3f8c908d541ba (diff)
downloadscintilla-mirror-d268b6e3a8ea565b0c255c8ac45ca442b98a37f8.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')
-rw-r--r--include/KeyWords.h5
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);