vantreeseba / tree-sitter-haxe

MIT License
26 stars 11 forks source link

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

Open Frixuu opened 2 months ago

Frixuu commented 2 months ago

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

vantreeseba commented 2 months ago

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