tree-sitter-c icon indicating copy to clipboard operation
tree-sitter-c copied to clipboard

Multi-line comment not parsed correctly

Open genotrance opened this issue 4 years ago • 0 comments

#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")
 )
)

genotrance avatar May 17 '20 05:05 genotrance