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:
As per HCL specification on Identifiers the dash character
-
is allowed but this grammar does not accept it:The following example comes from Packer HCL template: