summaryrefslogtreecommitdiff
path: root/tnslc/parse/tokenizer.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/parse/tokenizer.tnsl')
-rw-r--r--tnslc/parse/tokenizer.tnsl5
1 files changed, 2 insertions, 3 deletions
diff --git a/tnslc/parse/tokenizer.tnsl b/tnslc/parse/tokenizer.tnsl
index c6e1ab6..139877c 100644
--- a/tnslc/parse/tokenizer.tnsl
+++ b/tnslc/parse/tokenizer.tnsl
@@ -21,7 +21,8 @@
/; break_token ({}charp dat, charp c) [bool]
/; if (len dat == 0)
;return false
-
+ ;; else if (dat{0} == '"' || dat{0} == '\'')
+ ;return string_closed(dat, c)
;; else if (is_in_string(~RESERVED, dat{len dat - 1}))
/; if (is_in_string(~RESERVED, c))
;dat.append(c)
@@ -99,8 +100,6 @@
;out.append(ttk)
;/
- ;tnsl.io.println(tdat)
-
;out = strip_and_expand(~out)
;return ~out
;/