Closed brandonspark closed 7 months ago
Nice catch, thanks! Just a side note, can you regenerate with tree-sitter built from 0.20.9 or HEAD? you can do so like so:
cargo install --git https://github.com/tree-sitter/tree-sitter
If you notice, your generated output rolls back some changes made in parser.h
@amaanq done!
thanks!
This PR makes it so that
preproc_elifdef
is not unconditionally used in allpreproc_if_<suffix>
variants. For instance,preproc_if
andpreproc_if_in_field_declaration_list
are in different contexts, and the former permits anyblock_item
to appear within its preprocessor statements, whereas the latter only allows_field_declaration_list_item
. Since thepreproc_elifdef
was not suffixed, however, this meanspreproc_if_in_field_declaration_list
actually also permitsblock_item
s to appear in it.