Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(language/go): add tree-sitter query for highlighting struct prope…
…rties The field_identifier type was recently removed from tree-sitter-go here: tree-sitter/tree-sitter-go#71 This means that struct keys are no longer syntax highlighted as properties, which I dislike. Hence this new query targets the first element of a key/value pair, and marks the first element as a @Property if it contains an identifier. I'm not sure if this undoes the goal of removing the field_identifier, but for now, it resolves my personal annoyance of struct keys not be highlighted as properties when creating a new instance of the struct.
- Loading branch information