Open mccartney opened 1 day ago
Thanks for the report @mccartney ! That's sure surprising. 🤔 Appreciate the runnable example. No idea why from a quick look at the ANTLR spec, although I'm certainly no expert there. Did you explore a cause/fix?
Looking at the spec it seems only %{
would be special, and escaped as %%{
. Then %
by itself in a string ought to be fine.
https://github.com/hashicorp/hcl/blob/main/hclsyntax/spec.md
Not sure we already cover that in out ANTLR spec though.
What is the smallest, simplest way to reproduce the problem?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
No opinion yet. I haven't looked at the possible fix yet.