diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-24 09:29:24 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-24 09:29:24 +1000 |
commit | aff335283c4ea47a38375ef6950ee2c285ddee70 (patch) | |
tree | 75a325ff0bef9f0bf7c121774fd8067fb869ac6b /src/ScintillaBase.cxx | |
parent | 524a5429eaae34e45769c39e44f1c7c10b1c5eff (diff) | |
download | scintilla-mirror-aff335283c4ea47a38375ef6950ee2c285ddee70.tar.gz |
Removing style byte indicators.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 9736c52f0..32ad962e8 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -492,7 +492,6 @@ public: void SetLexerLanguage(const char *languageName); const char *DescribeWordListSets(); void SetWordList(int n, const char *wl); - int GetStyleBitsNeeded() const; const char *GetName() const; void *PrivateCall(int operation, void *pointer); const char *PropertyNames(); @@ -594,10 +593,6 @@ void LexState::SetWordList(int n, const char *wl) { } } -int LexState::GetStyleBitsNeeded() const { - return lexCurrent ? lexCurrent->GetStyleBitsNeeded() : 5; -} - const char *LexState::GetName() const { return lexCurrent ? lexCurrent->languageName : ""; } @@ -740,8 +735,7 @@ void ScintillaBase::NotifyStyleToNeeded(int endStyleNeeded) { void ScintillaBase::NotifyLexerChanged(Document *, void *) { #ifdef SCI_LEXER - int bits = DocumentLexState()->GetStyleBitsNeeded(); - vs.EnsureStyle((1 << bits) - 1); + vs.EnsureStyle(0xff); #endif } @@ -982,7 +976,7 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara DocumentLexState()->PrivateCall(wParam, reinterpret_cast<void *>(lParam))); case SCI_GETSTYLEBITSNEEDED: - return DocumentLexState()->GetStyleBitsNeeded(); + return 8; case SCI_PROPERTYNAMES: return StringResult(lParam, DocumentLexState()->PropertyNames()); |