diff options
author | nyamatongwe <devnull@localhost> | 2002-02-12 03:36:52 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-02-12 03:36:52 +0000 |
commit | b69cc17d081f60e53b1f09d9ba012e8233afe0de (patch) | |
tree | b041a8765b277d713d09c617fc742b5c88af1c54 | |
parent | 1e519fdfa4386f228e4c7cb89608a2c4ac010126 (diff) | |
download | scintilla-mirror-b69cc17d081f60e53b1f09d9ba012e8233afe0de.tar.gz |
consting.
-rw-r--r-- | include/KeyWords.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/KeyWords.h b/include/KeyWords.h index 3bed075ef..fa427ff2e 100644 --- a/include/KeyWords.h +++ b/include/KeyWords.h @@ -15,25 +15,25 @@ typedef void (*LexerFunction)(unsigned int startPos, int lengthDoc, int initStyl */ class LexerModule { protected: - LexerModule *next; + const LexerModule *next; int language; LexerFunction fnLexer; LexerFunction fnFolder; - static LexerModule *base; + static const LexerModule *base; static int nextLanguage; public: const char *languageName; LexerModule(int language_, LexerFunction fnLexer_, const char *languageName_=0, LexerFunction fnFolder_=0); - int GetLanguage() { return language; } + int GetLanguage() const { return language; } virtual void Lex(unsigned int startPos, int lengthDoc, int initStyle, - WordList *keywordlists[], Accessor &styler); + WordList *keywordlists[], Accessor &styler) const; 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); + WordList *keywordlists[], Accessor &styler) const; + static const LexerModule *Find(int language); + static const LexerModule *Find(const char *languageName); }; /** |