diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-05-31 09:27:48 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-05-31 09:27:48 +1000 | 
| commit | 9bc61b338dfe63d2e6fcc66bc0933a0de6bcd31b (patch) | |
| tree | 64c541e9dcb42c9999759ab7dd40d67c72749b9a /lexers/LexScriptol.cxx | |
| parent | 8326c658b392ba13e92918dd89deebd60bcd195f (diff) | |
| parent | 8b447b76bbc110e055a0637657f5f00c65cc98dd (diff) | |
| download | scintilla-mirror-9bc61b338dfe63d2e6fcc66bc0933a0de6bcd31b.tar.gz | |
Merge 343-Win32-Fix which fixes hangs and crashes at shutdown on Windows.
Diffstat (limited to 'lexers/LexScriptol.cxx')
| -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)) | 
