diff options
| author | nyamatongwe <devnull@localhost> | 2011-08-05 12:18:14 +1000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-08-05 12:18:14 +1000 | 
| commit | 1a88b79d0151cf39b0dbe3c0da0858669de13896 (patch) | |
| tree | 56ef075e348e443a0352a43476d25c1717832b12 /lexers/LexLua.cxx | |
| parent | 1429e6853794fb0cf5c47d791145306652fbb746 (diff) | |
| download | scintilla-mirror-1a88b79d0151cf39b0dbe3c0da0858669de13896.tar.gz | |
Fix for infinite loop bug when typing "goto " at the end of the program.
Diffstat (limited to 'lexers/LexLua.cxx')
| -rw-r--r-- | lexers/LexLua.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lexers/LexLua.cxx b/lexers/LexLua.cxx index 0bf4aeea2..9e48efcd9 100644 --- a/lexers/LexLua.cxx +++ b/lexers/LexLua.cxx @@ -202,7 +202,7 @@ static void ColouriseLuaDoc(  					sc.ChangeState(SCE_LUA_WORD);  					if (strcmp(s, "goto") == 0) {	// goto <label> forward scan  						sc.SetState(SCE_LUA_DEFAULT); -						while (IsASpaceOrTab(sc.ch)) +						while (IsASpaceOrTab(sc.ch) && !sc.atLineEnd)  							sc.Forward();  						if (setWordStart.Contains(sc.ch)) {  							sc.SetState(SCE_LUA_LABEL); | 
