Skip to content

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

@Frixuu

Description

@Frixuu

Hi! 👋

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions