diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-12-26 11:03:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 11:03:25 +0100 |
commit | 8c720f6b9d3217e2a9449ce13aac02406edbbb4e (patch) | |
tree | d27747fd449d64e792e890eb729e2123701d40c6 /runtime/indent/xml.vim | |
parent | 9dd8557921ec94035971a3145ab744add858459a (diff) | |
download | rneovim-8c720f6b9d3217e2a9449ce13aac02406edbbb4e.tar.gz rneovim-8c720f6b9d3217e2a9449ce13aac02406edbbb4e.tar.bz2 rneovim-8c720f6b9d3217e2a9449ce13aac02406edbbb4e.zip |
vim-patch:partial fa3b72348d88 (#16780)
Update runtime files
https://github.com/vim/vim/commit/fa3b72348d88343390fbe212cfc230fec1602fc2
omit
doc/eval.txt (needs 8.2.3864)
doc/map.txt (needs 8.2.3619)
menu.vim (needs 8.2.0413)
Diffstat (limited to 'runtime/indent/xml.vim')
-rw-r--r-- | runtime/indent/xml.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/indent/xml.vim b/runtime/indent/xml.vim index da65417939..5bf53ad1f8 100644 --- a/runtime/indent/xml.vim +++ b/runtime/indent/xml.vim @@ -39,6 +39,8 @@ setlocal indentkeys=o,O,*<Return>,<>>,<<>,/,{,},!^F " autoindent: used when the indentexpr returns -1 setlocal autoindent +let b:undo_indent = "setl ai< inde< indk<" + if !exists('b:xml_indent_open') let b:xml_indent_open = '.\{-}<[:A-Z_a-z]' " pre tag, e.g. <address> @@ -51,6 +53,10 @@ if !exists('b:xml_indent_close') " let b:xml_indent_close = '.\{-}</\(address\)\@!' endif +if !exists('b:xml_indent_continuation_filetype') + let b:xml_indent_continuation_filetype = 'xml' +endif + let &cpo = s:keepcpo unlet s:keepcpo @@ -162,7 +168,7 @@ endfun func! <SID>IsXMLContinuation(line) " Checks, whether or not the line matches a start-of-tag - return a:line !~ '^\s*<' && &ft is# 'xml' + return a:line !~ '^\s*<' && &ft =~# b:xml_indent_continuation_filetype endfunc func! <SID>HasNoTagEnd(line) |