UserNobody14 / tree-sitter-dart

Attempt to make a tree-sitter grammar for dart
MIT License
62 stars 40 forks source link

Fixed identifier highlighting #62

Closed matthewnitschke closed 9 months ago

matthewnitschke commented 9 months ago

I'm new to writing tree-sitter parsers, so please correct me if this is an incorrect change.

All identifiers were being tagged as @variable.builtin. Looking at some of the documentation provided by nvim, @variable.builtin should be reserved for variables provided by the language (so this. in dart)

Changes

[!NOTE] Running tree-sitter generate on v0.20.9, now results in the following output, these conflicts can probably be cleaned up in a later PR

out

TimWhiting commented 9 months ago

Looks good!