diff options
author | nyamatongwe <unknown> | 2005-08-30 11:07:33 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-08-30 11:07:33 +0000 |
commit | 4f8c51ef2e37f152640afa8565716435b256172c (patch) | |
tree | 1f359ea0977818f6efbafb8d5c5d2fbfa7bdd473 /include/KeyWords.h | |
parent | 203b397eb52cbdd7355e00006adb489780378307 (diff) | |
download | scintilla-mirror-4f8c51ef2e37f152640afa8565716435b256172c.tar.gz |
Added StyleBitsNeeded property and implemented to return 5 for all lexers
except HTML, XML, ... (7) and Ruby (6).
Diffstat (limited to 'include/KeyWords.h')
-rw-r--r-- | include/KeyWords.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/KeyWords.h b/include/KeyWords.h index cc81b73df..059ac0da0 100644 --- a/include/KeyWords.h +++ b/include/KeyWords.h @@ -20,15 +20,19 @@ protected: LexerFunction fnLexer; LexerFunction fnFolder; const char * const * wordListDescriptions; + int styleBits; static const LexerModule *base; static int nextLanguage; public: const char *languageName; - LexerModule(int language_, LexerFunction fnLexer_, - const char *languageName_=0, LexerFunction fnFolder_=0, - const char * const wordListDescriptions_[] = NULL); + LexerModule(int language_, + LexerFunction fnLexer_, + const char *languageName_=0, + LexerFunction fnFolder_=0, + const char * const wordListDescriptions_[] = NULL, + int styleBits_=5); virtual ~LexerModule() { } int GetLanguage() const { return language; } @@ -37,6 +41,8 @@ public: int GetNumWordLists() const; const char *GetWordListDescription(int index) const; + int GetStyleBitsNeeded() const; + virtual void Lex(unsigned int startPos, int lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler) const; virtual void Fold(unsigned int startPos, int lengthDoc, int initStyle, |