Fixed backslash in string litteral breaking syntax highlighting

This commit is contained in:
Hans-Albert Maritz 2015-03-10 16:47:42 +11:00
parent 6995a7dc46
commit 42c8171992
1 changed files with 3 additions and 1 deletions

View File

@ -2605,10 +2605,12 @@ class Tokenizer
else else
lastBackSlash = true; lastBackSlash = true;
} }
if (ch == delimiter && !lastBackSlash) { else if (ch == delimiter && !lastBackSlash) {
endPos = i; endPos = i;
break; break;
} }
else if(lastBackSlash)
lastBackSlash = false;
} }
if (endPos != int.max) { if (endPos != int.max) {
// found end quote // found end quote