From af0eaee01737d26314c9c3618153e99d1eb3e2f1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 1 Jun 2021 18:17:40 +0200 Subject: Update --- syntax/terraform.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'syntax/terraform.vim') 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 -- cgit v1.2.3