diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-24 09:28:04 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-24 09:28:04 +1000 |
commit | a55a7b13deaaf1b19b82ecdbc997d3e457677e26 (patch) | |
tree | e6ba0c49478d1feb2897db23793d307f937ef01f | |
parent | 1286b8a98f09bc3004302f438e04404c98269e36 (diff) | |
download | scintilla-mirror-a55a7b13deaaf1b19b82ecdbc997d3e457677e26.tar.gz |
Removing use of style byte indicator in Scriptol lexer.
-rw-r--r-- | lexers/LexScriptol.cxx | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/lexers/LexScriptol.cxx b/lexers/LexScriptol.cxx index 31747b88e..40ef0de58 100644 --- a/lexers/LexScriptol.cxx +++ b/lexers/LexScriptol.cxx @@ -127,11 +127,10 @@ static void ColouriseSolDoc(unsigned int startPos, int length, int initStyle, } } - styler.StartAt(startPos, 127); + styler.StartAt(startPos); WordList &keywords = *keywordlists[0]; - int whingeLevel = styler.GetPropertyInt("tab.timmy.whinge.level"); char prevWord[200]; prevWord[0] = '\0'; if (length == 0) return; @@ -143,37 +142,9 @@ static void ColouriseSolDoc(unsigned int startPos, int length, int initStyle, char chPrev2 = ' '; char chNext = styler[startPos]; styler.StartSegment(startPos); - bool atStartLine = true; - int spaceFlags = 0; for (int i = startPos; i < lengthDoc; i++) { - if (atStartLine) - { - char chBad = static_cast<char>(64); - char chGood = static_cast<char>(0); - char chFlags = chGood; - - if (whingeLevel == 1) - { - chFlags = (spaceFlags & wsInconsistent) ? chBad : chGood; - } - else if (whingeLevel == 2) - { - chFlags = (spaceFlags & wsSpaceTab) ? chBad : chGood; - } - else if (whingeLevel == 3) - { - chFlags = (spaceFlags & wsSpace) ? chBad : chGood; - } - else if (whingeLevel == 4) - { - chFlags = (spaceFlags & wsTab) ? chBad : chGood; - } - styler.SetFlags(chFlags, static_cast<char>(state)); - atStartLine = false; - } - char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); @@ -185,7 +156,6 @@ static void ColouriseSolDoc(unsigned int startPos, int length, int initStyle, { styler.ColourTo(i, state); } - atStartLine = true; } if (styler.IsLeadByte(ch)) |