Open databus23 opened 8 years ago
https://github.com/blynn/nex/issues/16 mentions requiring a newline at the end of the file. This looks to apply here too. Adding even a space at the end matched the last bracket correctly "(rule) "
@drewwells not for me:
lexing "(rule) ":
-> "("
-> "rule"
I'm having a hard time understanding the behavior of the lexer in the following case:
Output of nex -r -s huh.nex:
Why is the lexer swallowing the trailing bracket when there is no space between the content and the surrounding brackets?. This looks like a bug to me. It has something to do with second character class in the content regex (
[^ ]*
), when I change that to also not match)
it works.