Closed eglekaz closed 2 months ago
This one is complicated, already kind of answered in https://github.com/usagi-coffee/tree-sitter-abl/issues/42#issuecomment-2255513007 but this time s/whitespace/include or comment, putting comment and include explicitly in class body element breaks too, so yeah...
Tree-sitter does not correctly recognize that classBody and body can start and end with an INCLUDE or COMMENT. Instead, it only considers include statements/comments as part of the body after the define statement. In the examples: 1st and 3rd occurrences of these components are not recognized as part of class_body.
Include example:
Comment example: