summaryrefslogtreecommitdiffstats
path: root/syntax/ansible.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ansible.vim')
-rw-r--r--syntax/ansible.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/syntax/ansible.vim b/syntax/ansible.vim
index 29921b6b..72dc977c 100644
--- a/syntax/ansible.vim
+++ b/syntax/ansible.vim
@@ -103,6 +103,13 @@ else
highlight default link ansible_with_keywords Statement
endif
+execute 'syn keyword ansible_with_keywords loop containedin='.s:yamlKey.' contained'
+if exists("g:ansible_with_keywords_highlight")
+ execute 'highlight link ansible_with_keywords '.g:ansible_with_keywords_highlight
+else
+ highlight default link ansible_with_keywords Statement
+endif
+
let b:current_syntax = "ansible"
endif