diff options
| author | nyamatongwe <devnull@localhost> | 2010-07-13 21:38:26 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-07-13 21:38:26 +1000 |
| commit | d4d3f82cc71c64c05ce6efdcb61164092da51c2b (patch) | |
| tree | 6c40f786e5ebf67016364b2dcdb1c15ee67ee1da /src/ScintillaBase.h | |
| parent | c6f21af4f42c480d20729ce0d285cee6e94ffcbb (diff) | |
| download | scintilla-mirror-d4d3f82cc71c64c05ce6efdcb61164092da51c2b.tar.gz | |
Files changed for new lexer design.
Diffstat (limited to 'src/ScintillaBase.h')
| -rw-r--r-- | src/ScintillaBase.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ScintillaBase.h b/src/ScintillaBase.h index 704ca88f8..203510844 100644 --- a/src/ScintillaBase.h +++ b/src/ScintillaBase.h @@ -12,6 +12,10 @@ namespace Scintilla { #endif +#ifdef SCI_LEXER +class LexState; +#endif + /** */ class ScintillaBase : public Editor { @@ -44,12 +48,7 @@ protected: int maxListWidth; /// Maximum width of list, in average character widths #ifdef SCI_LEXER - bool performingStyle; ///< Prevent reentrance - int lexLanguage; - const LexerModule *lexCurrent; - PropSetSimple props; - enum {numWordLists=KEYWORDSET_MAX+1}; - WordList *keyWordLists[numWordLists+1]; + LexState *DocumentLexState(); void SetLexer(uptr_t wParam); void SetLexerLanguage(const char *languageName); void Colourise(int start, int end); @@ -87,7 +86,9 @@ protected: virtual void ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, bool alt); - virtual void NotifyStyleToNeeded(int endStyleNeeded); + void NotifyStyleToNeeded(int endStyleNeeded); + void NotifyLexerChanged(Document *doc, void *userData); + public: // Public so scintilla_send_message can use it virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam); |
