mirror of https://github.com/buggins/dlangide.git
Merge pull request #43 from Freakazo/syntaxFix
Fixed backslash in string litteral breaking syntax highlighting
This commit is contained in:
commit
ef7ff1ee95
|
@ -2605,10 +2605,12 @@ class Tokenizer
|
|||
else
|
||||
lastBackSlash = true;
|
||||
}
|
||||
if (ch == delimiter && !lastBackSlash) {
|
||||
else if (ch == delimiter && !lastBackSlash) {
|
||||
endPos = i;
|
||||
break;
|
||||
}
|
||||
else if(lastBackSlash)
|
||||
lastBackSlash = false;
|
||||
}
|
||||
if (endPos != int.max) {
|
||||
// found end quote
|
||||
|
|
Loading…
Reference in New Issue