mirror of https://github.com/buggins/dlangide.git
Fixed backslash in string litteral breaking syntax highlighting
This commit is contained in:
parent
6995a7dc46
commit
42c8171992
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue