tree-sitter-grammars / tree-sitter-odin

Odin grammar for tree-sitter
MIT License
19 stars 4 forks source link

bug: numbers with underscore does not get highlighted #19

Closed itsmagu closed 1 month ago

itsmagu commented 1 month ago

Did you check existing issues?

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

When using underscores in numbers like this

Nice := 0x00000001
Sad := 0x0000_0001

The second number loses highlighting 😢 image

Steps To Reproduce/Bad Parse Tree

Write out the example above

Expected Behavior/Parse Tree

The number with underscore gets highlighted too 😄 I tested this with other tree sitter highlighters for languages like C# and this works there.

Repro

No response

itsmagu commented 1 month ago

nvm this was my config