Skip to content

Commit

Permalink
feat: support custom variables ${}
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor committed Sep 10, 2021
1 parent dd38dda commit df18e6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/grammar/spark/SparkSql.g4
Original file line number Diff line number Diff line change
Expand Up @@ -1793,13 +1793,17 @@ BIGDECIMAL_LITERAL
;

IDENTIFIER
: (LETTER | DIGIT | '_')+
: (LETTER | DIGIT | '_' | CUSTOM_VARS)+
;

BACKQUOTED_IDENTIFIER
: '`' ( ~'`' | '``' )* '`'
;

CUSTOM_VARS
: '${'(IDENTIFIER)'}'
;

fragment DECIMAL_DIGITS
: DIGIT+ '.' DIGIT*
| '.' DIGIT+
Expand Down

0 comments on commit df18e6c

Please sign in to comment.