Skip to content

Commit

Permalink
Update scope for HCL function highlighting (#18)
Browse files Browse the repository at this point in the history
* Update scope for HCL function highlighting

* Update hcl snapshots
  • Loading branch information
dbanck authored Mar 16, 2022
1 parent 7742f54 commit abf9aca
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 45 deletions.
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

0 comments on commit abf9aca

Please sign in to comment.