KT-847 Allow "this" without {} in string templates
This commit is contained in:
committed by
Nikolay Krasko
parent
94ad86e79e
commit
55c11d0f44
@@ -134,7 +134,7 @@ label
|
||||
|
||||
literalConstant
|
||||
: "true" | "false"
|
||||
: StringWithTemplates
|
||||
: stringTemplate
|
||||
: NoEscapeString
|
||||
: IntegerLiteral
|
||||
: HexadecimalLiteral
|
||||
@@ -143,6 +143,22 @@ literalConstant
|
||||
: "null"
|
||||
;
|
||||
|
||||
stringTemplate
|
||||
: "\"" stringTemplateElement* "\""
|
||||
;
|
||||
|
||||
stringTemplateElement
|
||||
: RegularStringPart
|
||||
: ShortTemplateEntrySTART (SimpleName | "this")
|
||||
: EscapeSequence
|
||||
: longTemplate
|
||||
;
|
||||
|
||||
longTemplate
|
||||
: "${" expression "}"
|
||||
;
|
||||
|
||||
|
||||
isRHS
|
||||
: pattern
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user