feat: support custom variables ${}

This commit is contained in:
xiaowei 2021-09-08 20:22:46 +08:00 committed by Ziv
parent dd38dda19a
commit df18e6cb21

View File

@ -1793,13 +1793,17 @@ BIGDECIMAL_LITERAL
; ;
IDENTIFIER IDENTIFIER
: (LETTER | DIGIT | '_')+ : (LETTER | DIGIT | '_' | CUSTOM_VARS)+
; ;
BACKQUOTED_IDENTIFIER BACKQUOTED_IDENTIFIER
: '`' ( ~'`' | '``' )* '`' : '`' ( ~'`' | '``' )* '`'
; ;
CUSTOM_VARS
: '${'(IDENTIFIER)'}'
;
fragment DECIMAL_DIGITS fragment DECIMAL_DIGITS
: DIGIT+ '.' DIGIT* : DIGIT+ '.' DIGIT*
| '.' DIGIT+ | '.' DIGIT+