Linux kernel has files that don't have whitespaces after /delete-node/ and /delete-property/ directives. Also there are /delete-node/ definitions on document's top level. This means that DTC accepts such files.
This PR allowes to accept all those derectives as valid.
I've used lexical precedence to make tree-sitter prioritize keyword token over an identifier, though I am not entirely sure why it currently gets reduced to identifier with an error recovery over delete_node.
Linux kernel has files that don't have whitespaces after /delete-node/ and /delete-property/ directives. Also there are /delete-node/ definitions on document's top level. This means that DTC accepts such files.
Examples:
sdm845-cheza-r2.dts
aspeed-ast2600-evb-a1.dts
This PR allowes to accept all those derectives as valid. I've used lexical precedence to make tree-sitter prioritize keyword token over an identifier, though I am not entirely sure why it currently gets reduced to
identifier
with an error recovery overdelete_node
.Fixes #14