summaryrefslogtreecommitdiffstats
path: root/syntax/ansible.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-07-26 10:20:08 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-07-26 10:20:08 +0200
commit56121b4e27cb48efb17be55a969b2f0d725266f8 (patch)
tree30df0f431705cdb72b2014177ce3f0655287a81c /syntax/ansible.vim
parent9c3c0bc082e0d58d15dc6f24d8a335931417e2f0 (diff)
downloadvim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.tar.gz
vim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.zip
Update
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