diff options
author | nyamatongwe <devnull@localhost> | 2001-02-24 01:07:27 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-02-24 01:07:27 +0000 |
commit | 9131359e9b0f3aa9c004c651601dd17d0224b75d (patch) | |
tree | f98810687b579e1a3b3db21227ec71ffc1b906d4 /include/KeyWords.h | |
parent | 769025893f417503828b77a9edb4d17ee7668e1f (diff) | |
download | scintilla-mirror-9131359e9b0f3aa9c004c651601dd17d0224b75d.tar.gz |
Updated documentation comments from Philippe.
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; } - |