Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
The following is legal typescript source code with abstract as the field name of a class
class Foo {
foo : number = 0;
abstract : string = "";
bar : boolean = true;
}
Steps To Reproduce/Bad Parse Tree
- Put the code into a file abstract.ets
- Use this parser to parse it
- Use a debugger to see the parse tree
Expected Behavior/Parse Tree
There should be 3 fields in the class body node and none of them is ERROR node.
Repro
class Foo {
foo : number = 0;
abstract : string = "";
bar : boolean = true;
}
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version)No response
Describe the bug
The following is legal typescript source code with abstract as the field name of a class
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
There should be 3 fields in the class body node and none of them is ERROR node.
Repro