Skip to content

Commit

Permalink
chore: make regex more readable by replacing negation with the opposite
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Banck <dbanck@users.noreply.github.com>
  • Loading branch information
ansgarm and dbanck authored Feb 22, 2024
1 parent c98a17f commit 014d3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repository:
patterns:
- match: \b(abs|abspath|alltrue|anytrue|base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|can|ceil|chomp|chunklist|cidrhost|cidrnetmask|cidrsubnet|cidrsubnets|coalesce|coalescelist|compact|concat|contains|csvdecode|dirname|distinct|element|endswith|file|filebase64|filebase64sha256|filebase64sha512|fileexists|filemd5|fileset|filesha1|filesha256|filesha512|flatten|floor|format|formatdate|formatlist|indent|index|join|jsondecode|jsonencode|keys|length|log|lookup|lower|matchkeys|max|md5|merge|min|nonsensitive|one|parseint|pathexpand|plantimestamp|pow|range|regex|regexall|replace|reverse|rsadecrypt|sensitive|setintersection|setproduct|setsubtract|setunion|sha1|sha256|sha512|signum|slice|sort|split|startswith|strcontains|strrev|substr|sum|templatefile|textdecodebase64|textencodebase64|timeadd|timecmp|timestamp|title|tobool|tolist|tomap|tonumber|toset|tostring|transpose|trim|trimprefix|trimspace|trimsuffix|try|upper|urlencode|uuid|uuidv5|values|yamldecode|yamlencode|zipmap)\b
name: support.function.builtin.terraform
- match: \bprovider::[^\d\W][\w_-]*::[^\d\W][\w_-]*\b
- match: \bprovider::[[:alpha:]][\w_-]*::[[:alpha:]][\w_-]*\b
name: support.function.provider
"2":
name: punctuation.section.parens.begin.hcl
Expand Down

0 comments on commit 014d3a8

Please sign in to comment.