Skip to content

Parsing comments issues  #285

@kefiGhazi

Description

@kefiGhazi

Hi,
When I parse this valid SQL statement:
SELECT */* comment */ FROM table_name
the parser divides */* into two tokens:

  • 1st token with */ in value and type TYPE_COMMENT
  • 2nd token with * in value and type TYPE_OPERATOR

The expected behavior would be:

  • 1st token with * in value and type TYPE_OPERATOR
  • 2nd token with /* in value and type TYPE_COMMENT

Do you agree on that, and if yes, would you like help on providing a PR?
Thanks a lot

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions