summaryrefslogtreecommitdiff
path: root/static/js/lang.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/lang.js')
-rw-r--r--static/js/lang.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/js/lang.js b/static/js/lang.js
index 6ecc102..954b44d 100644
--- a/static/js/lang.js
+++ b/static/js/lang.js
@@ -89,7 +89,9 @@ class Wordifier {
let acc = '';
acc += this.reader.readUntil(c => c == endChar);
while (acc.endsWith('\\') || !this.reader.hasNext()) {
- acc += this.reader.readUntil(c => c != endChar);
+ acc = acc.substr(0, acc.length - 1);
+ this.reader.next(); // endChar
+ acc += endChar + this.reader.readUntil(c => c == endChar);
}
this.reader.next(); // throw away closing char
this.tokens.push('"' + acc);