summaryrefslogtreecommitdiff
path: root/runtime/syntax/dtd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-05-18 21:49:28 +0200
committerBram Moolenaar <Bram@vim.org>2012-05-18 21:49:28 +0200
commit8e52a593765172de0f4d98a849d6d89d024b971e (patch)
tree835eaca57a3432e958820b1a994ffa410dd24572 /runtime/syntax/dtd.vim
parentbd1d5608952dd1c61f99f9b2f605610405415622 (diff)
downloadvim-8e52a593765172de0f4d98a849d6d89d024b971e.zip
Fix more 'cpo' issues in runtime files.
Diffstat (limited to 'runtime/syntax/dtd.vim')
-rw-r--r--runtime/syntax/dtd.vim23
1 files changed, 6 insertions, 17 deletions
diff --git a/runtime/syntax/dtd.vim b/runtime/syntax/dtd.vim
index 76778ba88..001dbbddd 100644
--- a/runtime/syntax/dtd.vim
+++ b/runtime/syntax/dtd.vim
@@ -13,17 +13,11 @@
" TODO:
" - improve synchronizing.
-if version < 600
- syntax clear
- let __dtd_cpo_save__ = &cpo
- set cpo&
-else
- if exists("b:current_syntax")
- finish
- endif
- let s:dtd_cpo_save = &cpo
- set cpo&vim
+if exists("b:current_syntax")
+ finish
endif
+let s:dtd_cpo_save = &cpo
+set cpo&vim
if !exists("dtd_ignore_case")
" I prefer having the case takes into consideration.
@@ -168,13 +162,8 @@ if version >= 508 || !exists("did_dtd_syn_inits")
delcommand HiLink
endif
-if version < 600
- let &cpo = __dtd_cpo_save__
- unlet __dtd_cpo_save__
-else
- let &cpo = s:dtd_cpo_save
- unlet s:dtd_cpo_save
-endif
+let &cpo = s:dtd_cpo_save
+unlet s:dtd_cpo_save
let b:current_syntax = "dtd"