diff options
author | nyamatongwe <unknown> | 2001-02-24 01:07:27 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-02-24 01:07:27 +0000 |
commit | 138a83285e148f933d9d8105d0b6a3f8d5c434bc (patch) | |
tree | f98810687b579e1a3b3db21227ec71ffc1b906d4 /include/KeyWords.h | |
parent | d21110c144c7ef998b76d3fde4954a811531c319 (diff) | |
download | scintilla-mirror-138a83285e148f933d9d8105d0b6a3f8d5c434bc.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; } - |