tree-sitter-c
tree-sitter-c copied to clipboard
Multi-line comment not parsed correctly
#define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected
* socket to be passed in */
Results in:
(translation_unit 1 1 146
(preproc_def 1 1 77
(identifier 1 9 28 "BIO_CTRL_DGRAM_SET_CONNECTED")
(preproc_arg 1 37 40)
)
(expression_statement 2 42 8
(pointer_expression 2 42 8
(identifier 2 44 6 "socket")
)
)
(declaration 2 51 5
(type_identifier 2 51 2 "to")
(identifier 2 54 2 "be")
)
(ERROR 2 57 12
(type_identifier 2 57 6 "passed")
(identifier 2 64 2 "in")
)
)