fd / language-hcl

A grammar for the HashiCorp Configuration Language.
MIT License
12 stars 7 forks source link

Heredocs break syntax highlighting #8

Open MPomeroy opened 6 years ago

MPomeroy commented 6 years ago

Including a heredoc in an HCL file causes this plugin to highlight everything after the heredoc as a string.

Update: Only happens if there is white space before the end delimiter of the HEREDOC

veger commented 6 years ago

According to syntax:

Multi-line strings start with <<EOF at the end of a line, and end with EOF on its own line (here documents).

It states that "EOF must be on its own line", i.e. it ends when a line is found containing only EOF (so no whitespace, or other things)

So I do not think this is a bug...?