diff options
author | nyamatongwe <unknown> | 2010-07-13 21:38:26 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-07-13 21:38:26 +1000 |
commit | 46a09069e0fd52a121d8a5d6655d513d28198061 (patch) | |
tree | 78913d3187df5083bb4a2e8239ec598321b2597f /src/ScintillaBase.h | |
parent | 4a42ef938d5cc3b13f42b4a3f4e7310a6b5cbf4b (diff) | |
download | scintilla-mirror-46a09069e0fd52a121d8a5d6655d513d28198061.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); |