diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-01 18:17:40 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-01 18:17:40 +0200 |
commit | af0eaee01737d26314c9c3618153e99d1eb3e2f1 (patch) | |
tree | e45903bbc85886dcb6568c1f3c3f867b2649f2ca /syntax/terraform.vim | |
parent | 730dcb02caab60a6ae5d8b4bdc16d290041061ec (diff) | |
download | vim-polyglot-af0eaee01737d26314c9c3618153e99d1eb3e2f1.tar.gz vim-polyglot-af0eaee01737d26314c9c3618153e99d1eb3e2f1.zip |
Update
Diffstat (limited to 'syntax/terraform.vim')
-rw-r--r-- | syntax/terraform.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/syntax/terraform.vim b/syntax/terraform.vim index 35beb58f..c99dbe47 100644 --- a/syntax/terraform.vim +++ b/syntax/terraform.vim @@ -9,8 +9,8 @@ if exists('b:current_syntax') finish endif -let s:cpo_save = &cpo -set cpo&vim +let s:cpo_save = &cpoptions +set cpoptions&vim " Identifiers are made up of alphanumeric characters, underscores, and " hyphens. @@ -39,7 +39,7 @@ syn match terraBraces "[\[\]]" """ skip \" and \\ in strings. syn region terraValueString start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=terraStringInterp -syn region terraStringInterp matchgroup=terraBraces start=/\${/ end=/}/ contained contains=ALL +syn region terraStringInterp matchgroup=terraBraces start=/\(^\|[^$]\)\$\zs{/ end=/}/ contained contains=ALL syn region terraHereDocText start=/<<-\?\z([a-z0-9A-Z]\+\)/ end=/^\s*\z1/ contains=terraStringInterp "" Functions. @@ -71,5 +71,5 @@ hi def link terraValueNull Constant let b:current_syntax = 'terraform' -let &cpo = s:cpo_save +let &cpoptions = s:cpo_save unlet s:cpo_save |