Skip to content

/ character not consistently treated #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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