Skip to content

Commit 2b498f5

Browse files
committed
Reformat list of built-in functions
1 parent af2556d commit 2b498f5

File tree

1 file changed

+36
-30
lines changed

1 file changed

+36
-30
lines changed

Terraform.sublime-syntax

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -84,36 +84,42 @@ variables:
8484
#
8585
# https://developer.hashicorp.com/terraform/language/functions
8686
builtin_functions: |-
87-
\b(?x:
88-
# numbers
89-
abs|ceil|floor|log|max|min|parseint|pow|signum
90-
# string
91-
|chomp|endswith|format|formatlist|indent|join|lower|regex|regexall|replace
92-
|split|startswith|strcontains|strrev|substr
93-
|templatestring|title|trim|trimprefix|trimsuffix|trimspace|upper
94-
# collection
95-
|alltrue|anytrue|chunklist|coalesce|coalescelist|compact|concat|contains
96-
|distinct|element|flatten|index|keys|length|list|lookup
97-
|map|matchkeys|merge|one|range|reverse
98-
|setintersection|setproduct|setsubtract|setunion|slice|sort|sum
99-
|transpose|values|zipmap
100-
# encoding
101-
|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|textdecodebase64|textencodebase64|urlencode|yamldecode|yamlencode
102-
# filesystem
103-
|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile
104-
# date and time
105-
|formatdate|plantimestamp|timeadd|timecmp|timestamp
106-
# hash and crypto
107-
|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filesha1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5
108-
# ip network
109-
|cidrhost|cidrnetmask|cidrsubnet|cidrsubnets
110-
# type conversion
111-
|can|issensitive|nonsensitive|sensitive|tobool|tolist|tomap|tonumber|toset|tostring|try|type
112-
# terraform-specific
113-
|provider::terraform::(?:encode_tfvars|decode_tfvars|encode_expr)
114-
# deprecated/old
115-
|filemd1
116-
)\b
87+
(?x:
88+
# numbers
89+
abs | ceil | floor | log | max | min | parseint | pow | signum
90+
# string
91+
| chomp | endswith | format | formatlist | indent | join | lower | regex
92+
| regexall | replace | split | startswith | strcontains | strrev | substr
93+
| templatestring | title | trim | trimprefix | trimsuffix | trimspace | upper
94+
# collection
95+
| alltrue | anytrue | chunklist | coalesce | coalescelist | compact | concat
96+
| contains | distinct | element | flatten | index | keys | length | list
97+
| lookup | map | matchkeys | merge | one | range | reverse | setintersection
98+
| setproduct | setsubtract | setunion | slice | sort | sum | transpose
99+
| values | zipmap
100+
# encoding
101+
| base64decode | base64encode | base64gzip | csvdecode | jsondecode
102+
| jsonencode | textdecodebase64 | textencodebase64 | urlencode | yamldecode
103+
| yamlencode
104+
# filesystem
105+
| abspath | dirname | pathexpand | basename | file | fileexists | fileset
106+
| filebase64 | templatefile
107+
# date and time
108+
| formatdate | plantimestamp | timeadd | timecmp | timestamp
109+
# hash and crypto
110+
| base64sha256 | base64sha512 | bcrypt | filebase64sha256
111+
| filebase64sha512 | filemd5 | filesha1 | filesha256 | filesha512 | md5
112+
| rsadecrypt | sha1 | sha256 | sha512 | uuid | uuidv5
113+
# ip network
114+
| cidrhost | cidrnetmask | cidrsubnet | cidrsubnets
115+
# type conversion
116+
| can | issensitive | nonsensitive | sensitive | tobool | tolist | tomap
117+
| tonumber | toset | tostring | try | type
118+
# terraform-specific
119+
| provider::terraform::(?:encode_tfvars | decode_tfvars | encode_expr)
120+
# deprecated/old
121+
| filemd1
122+
)
117123
118124
contexts:
119125
main:

0 commit comments

Comments
 (0)