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()