aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/syntax/xml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/xml.vim')
-rw-r--r--runtime/syntax/xml.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/syntax/xml.vim b/runtime/syntax/xml.vim
index 7b503abf4..4086a847b 100644
--- a/runtime/syntax/xml.vim
+++ b/runtime/syntax/xml.vim
@@ -286,9 +286,10 @@ endif
syn keyword xmlDocTypeKeyword contained DOCTYPE PUBLIC SYSTEM
syn region xmlInlineDTD contained matchgroup=xmlDocTypeDecl start="\[" end="]" contains=@xmlDTD
-syn include @xmlDTD <sfile>:p:h/dtd.vim
-unlet b:current_syntax
-
+if exists('g:xml_syntax_folding')
+ syn include @xmlDTD <sfile>:p:h/dtd.vim
+ unlet b:current_syntax
+endif
" synchronizing
" TODO !!! to be improved !!!