diff options
Diffstat (limited to 'include/KeyWords.h')
-rw-r--r-- | include/KeyWords.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/KeyWords.h b/include/KeyWords.h index 8d4d302b1..d589d1228 100644 --- a/include/KeyWords.h +++ b/include/KeyWords.h @@ -1,23 +1,31 @@ -// SciTE - Scintilla based Text Editor -// KeyWords.h - colourise for particular languages +// Scintilla source code edit control +/** @file KeyWords.h + ** Colourise for particular languages. + **/ // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. typedef void (*LexerFunction)(unsigned int startPos, int lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler); +/** + */ class LexerModule { static LexerModule *base; LexerModule *next; int language; LexerFunction fn; + public: LexerModule(int language_, LexerFunction fn_); static void Colourise(unsigned int startPos, int lengthDoc, int initStyle, int language, WordList *keywordlists[], Accessor &styler); }; -// This is ASCII specific but is safe with chars >= 0x80 +/** + * Check if a character is a space. + * This is ASCII specific but is safe with chars >= 0x80. + */ inline bool isspacechar(unsigned char ch) { return (ch == ' ') || ((ch >= 0x09) && (ch <= 0x0d)); } @@ -43,4 +51,3 @@ inline bool isoperator(char ch) { return true; return false; } - |