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

Single-line comments are detected inside strings (e.g. in URLs)

Open Frixuu opened this issue 1 year ago • 1 comments

Hi! :wave:

Given an expression:

var foo = "https://example.com";

I'd expect:

(module
  (variable_declaration
    (keyword)
    (identifier)
    (operator)
    (string)
  )
)

but I actually get:

(module
  (ERROR
    (identifier)
    (operator)
    (comment)
  )
)

Example in action: image

Frixuu avatar Sep 07 '24 16:09 Frixuu

Woops, thanks for the report, I'll try to sort this out.

vantreeseba avatar Sep 11 '24 18:09 vantreeseba