Open jsonmaur opened 7 years ago
The issue here is that you're using what is recognized as multi-line comment formatting /* comment */
Since there's no ending */
to finish the 'comment', the rest of your text is formatted as multi-line comments.
Maybe a fix would be to only match the multi-line comment syntax if it starts the line?
I don't think that reading is correct:
The rendering of:
"[\"prometheus\"]"
is .
has anyone stumbled upon any workarounds?
I'm seeing the same now - I'm escaping a double quote: "\""
, and everything after that is rendered in green, as if it was a string.
It breaks the formatting when escaping double quotes in a string, and the string has a "/*" in it. The resource I'm running into the formatting problem with is a CloudWatch metric filter:
Looks like it may be a bigger formatting problem with HCL, since the GitHub markdown syntax highlighting has the same problem. Nevertheless, this is a valid metric filter pattern for AWS. And if you try to escape the
*
to fix the formatting, you get the errorillegal char escape
from Terraform.