Closed swirle13 closed 4 months ago
I believe the behavior stems from the pattern for "for" lacking the word boundary regexes https://github.com/pjmiravalle/vscode-terraform-advanced-syntax-highlighting/blob/main/syntaxes/terraform.json#L558-L569
After trying and building locally, I can confirm it fixes the issue.
I'll open a pull request for this, should be a quick, single line fix.
@pjmiravalle Figured I'd tag you since your issues don't auto-assign yourself
Resolved in #13, and released in v1.4.3
.
Small example, with editor tokens and scopes provided.
format(...)
is highlighted correctly when by itselfbut when within square brackets, it converts to thinking it is highlighting
for
this behavior does not exist when
format
is within parentheses or curly braces, only square brackets.