1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00

fix comment overriding minus

This commit is contained in:
Natapat Samutpong 2022-03-13 08:30:13 +07:00
parent d211a05fd0
commit 35abd6b1b1

View file

@ -126,7 +126,7 @@ pub fn lexer() -> impl Parser<char, Vec<(Token, Span)>, Error = Simple<char>> {
.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()