Prefer the value of nested_syntaxes over detected syntax

This commit is contained in:
EinfachToll 2016-05-17 20:29:59 +02:00
parent 129c281810
commit 3a5a5ef0ad

View File

@ -595,7 +595,7 @@ let b:current_syntax="vimwiki"
" EMBEDDED syntax setup "{{{
let s:nested = VimwikiGet('nested_syntaxes')
if VimwikiGet('automatic_nested_syntaxes')
let s:nested = extend(s:nested, vimwiki#base#detect_nested_syntax())
let s:nested = extend(s:nested, vimwiki#base#detect_nested_syntax(), "keep")
endif
if !empty(s:nested)
for [s:hl_syntax, s:vim_syntax] in items(s:nested)