Open pgavlin opened 3 years ago
The proposed approach is to define InterpolateStart
and InterpolateEnd
tokens. The former will be issued at the beginning of an interpolated string; the latter will be issued at the end. Between these tokens will be a sequence of one or more (String
, Template
) token pairs followed by at most one String
token. The parser should treat this sequence of tokens the same way it treats a string scalar.
i.e. interpolated strings.
For example, consider the following source:
On line 8,
"{{ .Chart.Name }}-{{ .Chart.Version }}"
is an interpolated string.