Adrylen / language-bison-flex

Bison and Flex files highlighting
MIT License
5 stars 1 forks source link

Syntax highlighting error with ASCII %token definitions #4

Open Noah-Schoonover opened 2 years ago

Noah-Schoonover commented 2 years ago

This line produces some weird syntax highlighting issues for me: %token <treeptr> '=' '+' '-' '*' '/' '%' '>' '<' '!' '(' ')' ',' ';' '{' '}' ':' '.' '[' ']', especially the '{'

The rest of the file was broken, so I ended up having to put the tokens on separate lines (no issue there, except '>' is always highlighted a little differently). Seems to only occur when the prologue is present, and moving '{' to the beginning of the token list seems to help.