diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-07-25 17:49:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-07-25 17:49:10 +0200 |
commit | 6c35beaa11d38fc0c37a3d209295772313b12003 (patch) | |
tree | 811b970e87072e1901c554866c161e00064a4784 /runtime/indent/xml.vim | |
parent | 848f87633a4a89311838f0d00e12282f8e2e3003 (diff) |
Updated runtime files.
Diffstat (limited to 'runtime/indent/xml.vim')
-rw-r--r-- | runtime/indent/xml.vim | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/runtime/indent/xml.vim b/runtime/indent/xml.vim index 319dc39160..dbe5be5f25 100644 --- a/runtime/indent/xml.vim +++ b/runtime/indent/xml.vim @@ -1,6 +1,6 @@ " Language: xml " Maintainer: Johannes Zellner <johannes@zellner.org> -" Last Change: 2012 May 18 +" Last Change: 2012 Jul 25 " Notes: 1) does not indent pure non-xml code (e.g. embedded scripts) " 2) will be confused by unbalanced tags in comments " or CDATA sections. @@ -31,8 +31,16 @@ if !exists('b:xml_indent_close') " let b:xml_indent_close = '.\{-}</\(address\)\@!' endif +let &cpo = s:keepcpo +unlet s:keepcpo + " [-- finish, if the function already exists --] -if exists('*XmlIndentGet') | finish | endif +if exists('*XmlIndentGet') + finish +endif + +let s:keepcpo= &cpo +set cpo&vim fun! <SID>XmlIndentWithPattern(line, pat) let s = substitute('x'.a:line, a:pat, "\1", 'g') |