You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently only have a static list of valid function names in the Terraform grammar. Provider-defined functions introduce a new syntax for function calls, provider::aws::noop(). Also, it's impossible to compile all function names as a static list in the grammar, so we'll just assume that any function call with this new snytax is valid.
Proposal
Update Terraforms functions grammar block, e.g.
functions:
begin: ([:\w]+)(\()name: meta.function-call.hclcomment: Built-in and provider defined function callsbeginCaptures:
"1":
patterns:
- match: \b(abs|abspath|...|zipmap)\bname: support.function.builtin.terraform
- match: \b(provider::\w+::\w+)\bname: support.function.provider"2":
name: punctuation.section.parens.begin.hclend: \)
Add some tests for the new syntax
The text was updated successfully, but these errors were encountered:
Background
We currently only have a static list of valid function names in the Terraform grammar. Provider-defined functions introduce a new syntax for function calls,
provider::aws::noop()
. Also, it's impossible to compile all function names as a static list in the grammar, so we'll just assume that any function call with this new snytax is valid.Proposal
The text was updated successfully, but these errors were encountered: