From e7d4303cc8705e74f581159124481fb489dbf104 Mon Sep 17 00:00:00 2001 From: Luis Buriola Date: Thu, 31 Aug 2017 14:07:11 +0100 Subject: [PATCH] Add support to all built-in functions available on Terraform v0.10.3 Full list on: https://www.terraform.io/docs/configuration/interpolation.html#built-in-functions --- Terraform.YAML-tmLanguage | 2 +- Terraform.tmLanguage | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Terraform.YAML-tmLanguage b/Terraform.YAML-tmLanguage index 0a57152..f59080a 100644 --- a/Terraform.YAML-tmLanguage +++ b/Terraform.YAML-tmLanguage @@ -104,7 +104,7 @@ repository: string_interpolation_functions: comment: Builtin functions - begin: (base64decode|base64encode|base64sha256|ceil|cidrnetmask|compact|distinct|file|floor|keys|length|lower|md5|pathexpand|replace|sha1|sha256|signum|sort|timestamp|title|trimspace|upper|uuid|values|cidrhost|cidrsubnet|coalesce|concat|element|format|formatlist|from|index|join|jsonencode|length|list|lookup|map|max|merge|min|slice|split|substr|zipmap)(\() + begin: (base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|ceil|chomp|cidrhost|cidrnetmask|cidrsubnet|coalesce|coalescelist|compact|concat|contains|dirname|distinct|element|file|flatten|floor|format|formatlist|index|join|jsonencode|keys|length|list|log|lookup|lower|map|matchkeys|max|md5|merge|min|pathexpand|pow|replace|sha1|sha256|sha512|signum|slice|sort|split|substr|timestamp|title|trimspace|upper|urlencode|uuid|values|zipmap)(\() beginCaptures: '1': {name: keyword.other.function.inline.terraform} '2': {name: keyword.other.section.begin.terraform} diff --git a/Terraform.tmLanguage b/Terraform.tmLanguage index 5ee4860..e5f79f0 100644 --- a/Terraform.tmLanguage +++ b/Terraform.tmLanguage @@ -328,7 +328,7 @@ string_interpolation_functions begin - (base64decode|base64encode|base64sha256|ceil|cidrnetmask|compact|distinct|file|floor|keys|length|lower|md5|pathexpand|replace|sha1|sha256|signum|sort|timestamp|title|trimspace|upper|uuid|values|cidrhost|cidrsubnet|coalesce|concat|element|format|formatlist|from|index|join|jsonencode|length|list|lookup|map|max|merge|min|slice|split|substr|zipmap)(\() + (base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|ceil|chomp|cidrhost|cidrnetmask|cidrsubnet|coalesce|coalescelist|compact|concat|contains|dirname|distinct|element|file|flatten|floor|format|formatlist|index|join|jsonencode|keys|length|list|log|lookup|lower|map|matchkeys|max|md5|merge|min|pathexpand|pow|replace|sha1|sha256|sha512|signum|slice|sort|split|substr|timestamp|title|trimspace|upper|urlencode|uuid|values|zipmap)(\() beginCaptures 1