cmur2 / language-terraform

Terraform.io support for Atom
MIT License
49 stars 32 forks source link

Dashes in identifiers lead to partial syntax highlighting #54

Open cmur2 opened 3 years ago

cmur2 commented 3 years ago

As per HCL specification on Identifiers the dash character - is allowed but this grammar does not accept it:

The dash character - is additionally allowed in identifiers, even though that is not part of the unicode ID_Continue definition. This is to allow attribute names and block type names to contain dashes, although underscores as word separators are considered the idiomatic usage.

The following example comes from Packer HCL template:

image