Skip to content

/ character not consistently treated #2

@mazzma12

Description

@mazzma12
$ echo "select/**/*/**/from/**/events;" | sqllexerv2 -mode tokenize -format txt
IDENT WILDCARD WILDCARD MULTILINE_COMMENT IDENT WILDCARD WILDCARD OPERATOR IDENT PUNCTUATION

gives

"IDENT WILDCARD WILDCARD MULTILINE_COMMENT IDENT WILDCARD WILDCARD OPERATOR IDENT PUNCTUATION"

but if we add a space after the select the "/" is correctly detected

$ echo "select /**/*/**/from/**/events;" | sqllexerv2 -format txt -mode tokenize
COMMAND MULTILINE_COMMENT WILDCARD MULTILINE_COMMENT IDENT WILDCARD WILDCARD OPERATOR IDENT PUNCTUATION

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions