diff options
| author | nyamatongwe <unknown> | 2002-02-12 03:36:52 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2002-02-12 03:36:52 +0000 | 
| commit | 1ec77111903af33c0fb4a553e5a26996cf7a636e (patch) | |
| tree | b041a8765b277d713d09c617fc742b5c88af1c54 /include/KeyWords.h | |
| parent | f0546a3f52cfb6b2d1bfc4ca9343960e40a29f44 (diff) | |
| download | scintilla-mirror-1ec77111903af33c0fb4a553e5a26996cf7a636e.tar.gz | |
consting.
Diffstat (limited to 'include/KeyWords.h')
| -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);  };  /** | 
