summaryrefslogtreecommitdiffstats
path: root/syntax/ansible.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ansible.vim')
-rw-r--r--syntax/ansible.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/syntax/ansible.vim b/syntax/ansible.vim
index ed0eafbf..36167b65 100644
--- a/syntax/ansible.vim
+++ b/syntax/ansible.vim
@@ -80,11 +80,17 @@ endif
syn keyword ansible_debug_keywords debug containedin=yamlBlockMappingKey contained
highlight link ansible_debug_keywords Debug
-syn match ansible_with_keywords "\vwith_.+" containedin=yamlBlockMappingKey contained
+if exists("g:ansible_extra_keywords_highlight")
+ syn keyword ansible_extra_special_keywords register always_run changed_when failed_when no_log args vars delegate_to ignore_errors containedin=yamlBlockMappingKey contained
+ highlight link ansible_extra_special_keywords Statement
+endif
+
syn keyword ansible_special_keywords include until retries delay when only_if become become_user block rescue always notify containedin=yamlBlockMappingKey contained
-highlight link ansible_with_keywords Statement
highlight link ansible_special_keywords Statement
+syn match ansible_with_keywords "\vwith_.+" containedin=yamlBlockMappingKey contained
+highlight link ansible_with_keywords Statement
+
let b:current_syntax = "ansible"
endif