From 35abd6b1b1f76d3e6438b7b1a989b013b5716142 Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Sun, 13 Mar 2022 08:30:13 +0700 Subject: [PATCH] fix comment overriding minus --- crates/lexer/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lexer/src/lib.rs b/crates/lexer/src/lib.rs index 4f00626..5704476 100644 --- a/crates/lexer/src/lib.rs +++ b/crates/lexer/src/lib.rs @@ -126,7 +126,7 @@ pub fn lexer() -> impl Parser, Error = Simple> { .then_ignore(just('{') .ignore_then(none_of('}').ignored().repeated()) .then_ignore(just("}-")) - .or(none_of('\n').ignored().repeated()) + .or(just('-').ignore_then(none_of('\n').ignored().repeated())) ) .padded() .ignored()