From 7a0f2d974f9ac5bc85607e8c769d3370dd18ac74 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 7 Dec 2019 12:21:37 +0100 Subject: Update --- syntax/terraform.vim | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'syntax/terraform.vim') diff --git a/syntax/terraform.vim b/syntax/terraform.vim index 45f1f618..452329b9 100644 --- a/syntax/terraform.vim +++ b/syntax/terraform.vim @@ -4830,10 +4830,9 @@ syn keyword terraSection connection output variable terraform locals syn keyword terraValueBool true false on off yes no syn keyword terraTodo contained TODO FIXME XXX BUG -syn cluster terraCommentGroup contains=terraTodo -syn region terraComment start="/\*" end="\*/" contains=@terraCommentGroup,@Spell -syn region terraComment start="#" end="$" contains=@terraCommentGroup,@Spell -syn region terraComment start="//" end="$" contains=@terraCommentGroup,@Spell +syn region terraComment start="/\*" end="\*/" contains=terraTodo,@Spell +syn region terraComment start="#" end="$" contains=terraTodo,@Spell +syn region terraComment start="//" end="$" contains=terraTodo,@Spell syn keyword terraResource resource nextgroup=terraResourceTypeStr skipwhite syn region terraResourceTypeStr start=/"/ end=/"/ contains=terraResourceTypeBI nextgroup=terraResourceName skipwhite @@ -4867,13 +4866,11 @@ syn match terraBraces "[\[\]]" """ skip \" in strings. """ we may also want to pass \\" into a function to escape quotes. syn region terraValueString start=/"/ skip=/\\\+"/ end=/"/ contains=terraStringInterp -syn region terraStringInterp matchgroup=terraBrackets start=/\${/ end=/}/ contains=terraValueFunction,terraValueVarSubscript,terraStringInterp contained +syn region terraStringInterp matchgroup=terraBraces start=/\${/ end=/}/ contained contains=ALL syn region terraHereDocText start=/<<-\?\z([a-z0-9A-Z]\+\)/ end=/^\s*\z1/ contains=terraStringInterp + "" TODO match keywords here, not a-z+ -syn region terraValueFunction matchgroup=terraBrackets start=/[a-z]\+(/ end=/)/ contains=terraValueString,terraValueFunction,terraValueVarSubscript contained -" User variables or module outputs can be lists or maps, and accessed with -" var.map["foo"] -syn region terraValueVarSubscript start=/\(\