aboutsummaryrefslogtreecommitdiff
path: root/src/lux/lexer.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/lux/lexer.clj')
-rw-r--r--src/lux/lexer.clj3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lux/lexer.clj b/src/lux/lexer.clj
index f53a01665..918ddc7d9 100644
--- a/src/lux/lexer.clj
+++ b/src/lux/lexer.clj
@@ -34,8 +34,7 @@
(def ^:private lex-single-line-comment
(exec [[_ [meta _]] (&reader/read-text "##")
- [_ [_ comment]] (&reader/read-regex #"^([^\n]*)")
- _ (&reader/read-regex #"^(\n?)")]
+ [_ [_ comment]] (&reader/read-regex #"^(.*)$")]
(return (&/V "lux;Meta" (&/T meta (&/V "Comment" comment))))))
(defn ^:private lex-multi-line-comment [___]