Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform: / in string within interpolated function are not interpreted properly #2087

Open
Sayrus opened this issue Nov 12, 2024 · 0 comments
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@Sayrus
Copy link

Sayrus commented Nov 12, 2024

Name of the lexer
Terraform

Code sample

locals {
        example   = "${function_call("", "", "/")}"
        project_name = project_name
}

image

https://rouge.jneen.net/v4.5.1/terraform/bG9jYWxzIHsKICAgICAgICBleGFtcGxlICAgPSAiJHtmdW5jdGlvbl9jYWxsKCIiLCAiIiwgIi8iKX0iCiAgICAgICAgcHJvamVjdF9uYW1lID0gcHJvamVjdF9uYW1lCn0

Additional context
The function call is has a correct syntax function_call(string, string, string) enclosed with the interpolation sequence${...}. (Code won't pass a linter, you can use example = "${function_call("", "", "/")}/interpolated_string" instead)

Expected behavior:
image

@Sayrus Sayrus added the bugfix-request A request for a bugfix to be developed. label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

No branches or pull requests

1 participant