martinohmann / hcl-rs

HCL parsing and encoding libraries for rust with serde support
Apache License 2.0
124 stars 13 forks source link

`$${` should be evaluated to `${` #242

Closed vlad-ivanov-name closed 1 year ago

vlad-ivanov-name commented 1 year ago

TemplateExpr::evaluate right now will return literal $${ for $${ sequence in input.

martinohmann commented 1 year ago

Hey there @vlad-ivanov-name!

Thanks for reporting this and for the PR.

I closed your PR in favor of #245 and #247 as it's cleaner and more intuitive for the user to just unescape literals while parsing them and escape them when emitting the literal as HCL. This also avoids requiring the EscapedLiteral type.