Closed andryak closed 6 months ago
The parser does not recognise expression tree syntax.
The following is valid Hack:
$x = SomeVisitorClass`some expression`;
Yet, the parser does not parse it correctly:
(script (expression_statement (binary_expression (variable) (qualified_identifier (identifier))) (ERROR (UNEXPECTED '`') (identifier) (identifier) (UNEXPECTED '`'))))
Add a new test with content $x = SomeVisitorClass`some expression`;, then run tree-sitter test.
tree-sitter test
No errors are reported in the syntax tree.
Describe the bug
The parser does not recognise expression tree syntax.
The following is valid Hack:
Yet, the parser does not parse it correctly:
Requirements
To Reproduce
Add a new test with content
$x = SomeVisitorClass`some expression`;
, then runtree-sitter test
.Expected behavior
No errors are reported in the syntax tree.