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 list/map syntax highlighting #918

Merged
merged 2 commits into from
Feb 4, 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
6 changes: 1 addition & 5 deletions syntaxes/terraform.tmGrammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -747,13 +747,9 @@
"1": {
"patterns": [
{
"match": "abspath|abs|ceil|floor|log|max|min|pow|signum|chomp|formatlist|indent|join|lower|regexall|regex|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalescelist|coalesce|compact|concat|contains|distinct|element|flatten|index|keys|length|lookup|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|dirname|pathexpand|basename|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuidv5|uuid|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring|file|format",
"match": "abspath|abs|ceil|floor|log|max|min|pow|signum|chomp|formatlist|indent|join|lower|regexall|regex|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalescelist|coalesce|compact|concat|contains|distinct|element|flatten|index|keys|length|lookup|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|dirname|pathexpand|basename|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuidv5|uuid|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring|file|format|map|list",
"name": "support.function.builtin.terraform"
},
{
"match": "list|map",
"name": "invalid.deprecated.terraform"
},
{
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
"name": "variable.function.terraform"
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshot/terraform/variables_input.tf.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# ^^^^ scope.terraform meta.block.terraform variable.declaration.terraform
# ^ scope.terraform meta.block.terraform variable.declaration.terraform keyword.operator.assignment.terraform
# ^ scope.terraform meta.block.terraform variable.declaration.terraform
# ^^^^ scope.terraform meta.block.terraform meta.function-call.terraform invalid.deprecated.terraform
# ^^^^ scope.terraform meta.block.terraform meta.function-call.terraform support.function.builtin.terraform
# ^ scope.terraform meta.block.terraform meta.function-call.terraform punctuation.section.parens.begin.terraform
# ^^^^^^ scope.terraform meta.block.terraform meta.function-call.terraform storage.type.terraform
# ^ scope.terraform meta.block.terraform meta.function-call.terraform punctuation.section.parens.end.terraform
Expand Down Expand Up @@ -66,7 +66,7 @@
# ^ scope.terraform meta.block.terraform variable.declaration.terraform
# ^ scope.terraform meta.block.terraform variable.declaration.terraform keyword.operator.assignment.terraform
# ^ scope.terraform meta.block.terraform variable.declaration.terraform
# ^^^^ scope.terraform meta.block.terraform meta.function-call.terraform invalid.deprecated.terraform
# ^^^^ scope.terraform meta.block.terraform meta.function-call.terraform support.function.builtin.terraform
# ^ scope.terraform meta.block.terraform meta.function-call.terraform punctuation.section.parens.begin.terraform
# ^^^^^^ scope.terraform meta.block.terraform meta.function-call.terraform meta.function-call.terraform support.function.builtin.terraform
# ^ scope.terraform meta.block.terraform meta.function-call.terraform meta.function-call.terraform punctuation.section.parens.begin.terraform
Expand Down