@@ -26,24 +26,24 @@ syn match hclAttributeName /\<\K\k*\>/ contained
2626syn keyword hclValueBool true false
2727
2828syn keyword hclTodo contained TODO FIXME XXX BUG
29- syn region hclComment start =" /\* " end =" \* /" contains =hclTodo,@Spell
3029syn region hclComment start =" #" end =" $" contains =hclTodo,@Spell
3130syn region hclComment start =" //" end =" $" contains =hclTodo,@Spell
31+ syn region hclComment start =" /\* " end =" \* /" contains =hclTodo,@Spell
3232
33- " "" misc.
33+ " misc.
3434syn match hclValueDec " \< [0-9]\+\( [kKmMgG]b\?\)\?\> "
3535syn match hclValueHexaDec " \< 0x[0-9a-f]\+\( [kKmMgG]b\?\)\?\> "
3636syn match hclBraces " [\[\] ]"
3737
38- " "" skip \" and \\ in strings.
38+ " skip \" and \\ in strings.
3939syn region hclValueString start =/ "/ skip =/ \\\\\|\\ "/ end =/ "/ contains =hclStringInterp
4040syn region hclStringInterp matchgroup =hclBraces start =/ \( ^\| [^$]\)\$\z s{/ end =/ }/ contained contains =ALLBUT,hclAttributeName
4141syn region hclHereDocText start =/ <<-\?\z ([a-z0-9A-Z]\+\) / end =/ ^\s *\z 1/ contains =hclStringInterp
4242
43- " " Functions.
43+ " Functions.
4444syn match hclFunction " [a-z0-9_]\+ (\@ ="
4545
46- " "" HCL2
46+ " HCL2
4747syn keyword hclRepeat for in
4848syn keyword hclConditional if
4949syn keyword hclValueNull null
@@ -66,6 +66,9 @@ hi def link hclRepeat Repeat
6666hi def link hclConditional Conditional
6767hi def link hclValueNull Constant
6868
69+ " synchronize
70+ syntax sync ccomment hclComment
71+
6972let b: current_syntax = ' hcl'
7073
7174let &cpoptions = s: cpo_save
0 commit comments