hashicorp / hil

HIL is a small embedded language for string interpolations.
Mozilla Public License 2.0
396 stars 34 forks source link

Feature: allow escaping of characters in identifiers #55

Closed DeviaVir closed 6 years ago

DeviaVir commented 6 years ago

Related to https://github.com/hashicorp/terraform/issues/17197

This should allow users to escape certain characters that would otherwise be picked up as new identifiers. For a usecase see the ticket related above, I've also added it as a testcase.

I can imagine the Go code I wrote is not acceptable, please let me know how I can improve it if this is something you are interested in supporting.

Thanks!

DeviaVir commented 6 years ago

I don't know if it's common practice/appreciated to ping people, but I've seen it in other PR's, so apologies if it's unwanted: @apparentlymart

DeviaVir commented 6 years ago

Superseded by a better plan from @apparentlymart in the linked terraform issue :+1: