tree-sitter-grammars / tree-sitter-zig

Zig grammar for tree-sitter
MIT License
7 stars 3 forks source link

bug: No highlights for boolean values #3

Open mkblast opened 1 week ago

mkblast commented 1 week ago

Did you check existing issues?

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

tree-sitter 0.24.3 (bdfe32402e85673bbc693216f0a6ef72c98bb665)

Describe the bug

Seems like boolean values like true of false are not highlighted: Image

in other languages (rust): Image

Steps To Reproduce/Bad Parse Tree

  1. Open zig file.
  2. create a variable that holds a boolean.
  3. no highlights.

Expected Behavior/Parse Tree

non.

Repro

No response

xdBronch commented 1 week ago

it seems true and false are classified as identifier, id bet if your theme highlighted those differently it would change true/false too (ignore highlighting im not using ts for that) Image these 4 variables correspond to this tree in nvims :InspectTree Image notice how t and f have 2 (identifier) nodes