uben0 / tree-sitter-typst

Tree Sitter grammar for Typst
MIT License
110 stars 9 forks source link

Add parsing rule for hexadecimal values #9

Closed Nagefire closed 10 months ago

Nagefire commented 10 months ago

Typst allows for C-style hexadecimal strings (0xff) as unsigned integers in code contexts. Currently, the grammar shows (ERROR) for these values

uben0 commented 10 months ago

The grammar does support this notation, maybe the bug is due to context. Can you try to isolate the bug, like find the minimal code to produce the error?

Nagefire commented 10 months ago

Found the bug, my session was pointing to a different pointer