From 464b6e8f5e6c62f58fa8c7ff61ab2ad215e98bd1 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 9 Aug 2021 23:02:01 -0400 Subject: Improved single-line comment syntax (from "##" to "..."). --- lux-bootstrapper/src/lux/lexer.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lux-bootstrapper') diff --git a/lux-bootstrapper/src/lux/lexer.clj b/lux-bootstrapper/src/lux/lexer.clj index 49e29710a..47c985f21 100644 --- a/lux-bootstrapper/src/lux/lexer.clj +++ b/lux-bootstrapper/src/lux/lexer.clj @@ -42,7 +42,7 @@ (return (&/T [meta ($White_Space white-space)])))) (def ^:private lex-comment - (|do [_ (&reader/read-text "##") + (|do [_ (&reader/read-text "...") [meta _ comment] (&reader/read-regex #"^(.*)$")] (return (&/T [meta ($Comment comment)])))) -- cgit v1.2.3