19 skipped lines |
20 | | 20 | | LexerFunction fnLexer; |
|
21 | | 21 | | LexerFunction fnFolder; |
|
22 | | 22 | | const char * const * wordListDescriptions; |
|
| | 23 | | int styleBits; |
|
24 | | 25 | | static const LexerModule *base; |
|
25 | | 26 | | static int nextLanguage; |
|
|
|
28 | | 29 | | const char *languageName; |
|
29 | | LexerModule(int language_, LexerFunction fnLexer_, | | 30 | | LexerModule(int language_, |
| | 31 | | LexerFunction fnLexer_, |
30 | | const char *languageName_=0, LexerFunction fnFolder_=0, | | 32 | | const char *languageName_=0, |
| | 33 | | LexerFunction fnFolder_=0, |
31 | | const char * const wordListDescriptions_[] = NULL); | | 34 | | const char * const wordListDescriptions_[] = NULL, |
| | 35 | | int styleBits_=5); |
| | 36 | | virtual ~LexerModule() { |
| | 37 | | } |
32 | | 38 | | int GetLanguage() const { return language; } |
|
|
34 | | 40 | | // -1 is returned if no WordList information is available |
|
35 | | 41 | | int GetNumWordLists() const; |
|
36 | | 42 | | const char *GetWordListDescription(int index) const; |
|
|
| | 44 | | int GetStyleBitsNeeded() const; |
| | 45 | | |
38 | | 46 | | virtual void Lex(unsigned int startPos, int lengthDoc, int initStyle, |
|
39 | | 47 | | WordList *keywordlists[], Accessor &styler) const; |
|
40 | | 48 | | virtual void Fold(unsigned int startPos, int lengthDoc, int initStyle, |
|
35 skipped lines |