HCL2 uses the unicode definition of identifiers, which permits underscores only in the ID_Continue portion, and not in ID_Start.
It is a reasonable expectation from other languages that identifiers can begin with an underscore, so we'll extend the unicode definition here to include underscore in ID_Start, in similar vein to how we extended ID_Continue to include dashes.
HCL2 uses the unicode definition of identifiers, which permits underscores only in the
ID_Continue
portion, and not inID_Start
.It is a reasonable expectation from other languages that identifiers can begin with an underscore, so we'll extend the unicode definition here to include underscore in
ID_Start
, in similar vein to how we extendedID_Continue
to include dashes.