summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/mode/soy/soy.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/mode/soy/soy.js')
-rw-r--r--public/vendor/codemirror/mode/soy/soy.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/vendor/codemirror/mode/soy/soy.js b/public/vendor/codemirror/mode/soy/soy.js
index 79bfc24d..580c306f 100644
--- a/public/vendor/codemirror/mode/soy/soy.js
+++ b/public/vendor/codemirror/mode/soy/soy.js
@@ -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";
}