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

Update scope for HCL function highlighting #18

Merged
merged 2 commits into from
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syntaxes/hcl.tmGrammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@
"patterns": [
{
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
"name": "variable.function.hcl"
"name": "support.function.builtin.hcl"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshot/hcl/basic.hcl.snap
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
# ^ source.hcl variable.declaration.hcl
# ^ source.hcl variable.declaration.hcl keyword.operator.assignment.hcl
# ^ source.hcl variable.declaration.hcl
# ^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^^^^^^^ source.hcl meta.function-call.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshot/hcl/expressions_conditional.hcl.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# ^ source.hcl
# ^ source.hcl keyword.operator.hcl
# ^ source.hcl
# ^^^^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^^ source.hcl meta.function-call.hcl constant.numeric.integer.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
Expand Down
10 changes: 5 additions & 5 deletions tests/snapshot/hcl/expressions_for.hcl.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# ^ source.hcl
# ^ source.hcl keyword.operator.hcl
# ^ source.hcl
# ^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^ source.hcl meta.function-call.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
Expand All @@ -35,14 +35,14 @@
# ^ source.hcl
# ^ source.hcl keyword.operator.hcl
# ^ source.hcl
# ^^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^ source.hcl meta.function-call.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
# ^ source.hcl
# ^ source.hcl keyword.operator.arithmetic.hcl
# ^ source.hcl
# ^^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^ source.hcl meta.function-call.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
Expand Down Expand Up @@ -95,7 +95,7 @@
# ^ source.hcl
# ^^ source.hcl storage.type.function.hcl
# ^ source.hcl
# ^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^ source.hcl meta.function-call.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
Expand All @@ -115,7 +115,7 @@
# ^ source.hcl
# ^ source.hcl keyword.operator.hcl
# ^ source.hcl
# ^^^^^ source.hcl meta.function-call.hcl variable.function.hcl
# ^^^^^ source.hcl meta.function-call.hcl support.function.builtin.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.begin.hcl
# ^ source.hcl meta.function-call.hcl
# ^ source.hcl meta.function-call.hcl punctuation.section.parens.end.hcl
Expand Down
Loading