Open xdBronch opened 3 days ago
tree-sitter --version
No response
title
const e = enum { a, b, }; const uu = union(enum) { a, b: u32, };
this gives
(variable_declaration (identifier) (enum_declaration (container_field type: (identifier)) (container_field type: (identifier)))) (variable_declaration (identifier) (union_declaration (container_field type: (identifier)) (container_field name: (identifier) type: (builtin_type))))
both enum fields and the first union field are given type field names
type
(variable_declaration (identifier) (enum_declaration (container_field name: (identifier)) (container_field name: (identifier)))) (variable_declaration (identifier) (union_declaration (container_field name: (identifier)) (container_field name: (identifier) type: (builtin_type))))
all the fields should be name: (identifier)
name: (identifier)
hm I think I can just work around this with wildcards, I'll leave this open for now but I'm fine with it being closed
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
title
Steps To Reproduce/Bad Parse Tree
this gives
both enum fields and the first union field are given
type
field namesExpected Behavior/Parse Tree
all the fields should be
name: (identifier)
Repro
No response