Skip to content
Snippets Groups Projects
Commit dabefce1 authored by Jakub Vrána's avatar Jakub Vrána Committed by Marijn Haverbeke
Browse files

[soy mode] Support backslash in strings

parent df3a0ae0
No related branches found
No related tags found
No related merge requests found
......@@ -121,10 +121,11 @@
return tokenUntil(stream, state, /\{\/literal}/);
case "string":
if (stream.match(/^.*?"/)) {
state.soyState.pop();
} else {
var match = stream.match(/^.*?("|\\[\s\S])/);
if (!match) {
stream.skipToEnd();
} else if (match[1] == "\"") {
state.soyState.pop();
}
return "string";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment