Closed 4e554c4c closed 2 years ago
Enum class labels which use the hash (#) character are not correctly parsed by tree-sitter-hack.
#
This means that # should also no longer parse comments
x
[ ]
The following should parse as valid hack
E#B;
instead it parses as an unterminated statement:
(script [0, 0] - [1, 0] (ERROR [0, 0] - [0, 1] (identifier [0, 0] - [0, 1])) (comment [0, 1] - [0, 4]))
Describe the bug
Enum class labels which use the hash (
#
) character are not correctly parsed by tree-sitter-hack.This means that
#
should also no longer parse commentsRequirements (place an
x
in each of the[ ]
)**Expected behavior
The following should parse as valid hack
instead it parses as an unterminated statement: