Merge pull request #43 from Freakazo/syntaxFix

Fixed backslash in string litteral breaking syntax highlighting
This commit is contained in:
Vadim Lopatin 2015-03-10 09:24:21 +03:00
commit ef7ff1ee95
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