We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df3a0ae commit dabefceCopy full SHA for dabefce
mode/soy/soy.js
@@ -121,10 +121,11 @@
121
return tokenUntil(stream, state, /\{\/literal}/);
122
123
case "string":
124
- if (stream.match(/^.*?"/)) {
125
- state.soyState.pop();
126
- } else {
+ var match = stream.match(/^.*?("|\\[\s\S])/);
+ if (!match) {
127
stream.skipToEnd();
+ } else if (match[1] == "\"") {
128
+ state.soyState.pop();
129
}
130
return "string";
131
0 commit comments