hashicorp / hcl2

Former temporary home for experimental new version of HCL
https://github.com/hashicorp/hcl
Mozilla Public License 2.0
374 stars 64 forks source link

String literal parsing is incorrect #3

Closed apparentlymart closed 6 years ago

apparentlymart commented 6 years ago

The syntax for template directives changed during prototyping, but there is some remnant handling of the old syntax in the string literal parser that needs to be updated to support the current syntax.

In particular, it currently trips over single ! characters believing them to be the start of a directive sequence, and conversely does not correctly handle escaping of the new introduction symbol %.