aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-22 22:01:15 -0500
committerGitHub <noreply@github.com>2020-11-22 22:01:15 -0500
commitcd691f2b6f605bc7fc13961e275823673d9871ad (patch)
treeab668aeb52dadeb4ad63c1b404ccf44159dc6ebc /runtime/compiler
parentee8f530b400881f1de3e8004f614552d7ef4c3d4 (diff)
parent2d35706b97311f5a3928f18941236a0058fd3410 (diff)
downloadrneovim-cd691f2b6f605bc7fc13961e275823673d9871ad.tar.gz
rneovim-cd691f2b6f605bc7fc13961e275823673d9871ad.tar.bz2
rneovim-cd691f2b6f605bc7fc13961e275823673d9871ad.zip
Merge pull request #13333 from adrian5/filetype-xml
runtime: Patch xml, xmllint, xmlformat filetypes
Diffstat (limited to 'runtime/compiler')
-rw-r--r--runtime/compiler/xmllint.vim18
1 files changed, 10 insertions, 8 deletions
diff --git a/runtime/compiler/xmllint.vim b/runtime/compiler/xmllint.vim
index 96cfa55383..79d38b4d14 100644
--- a/runtime/compiler/xmllint.vim
+++ b/runtime/compiler/xmllint.vim
@@ -1,7 +1,7 @@
" Vim compiler file
-" Compiler: xmllint
+" Compiler: Libxml2 Command-Line Tool
" Maintainer: Doug Kearns <dougkearns@gmail.com>
-" Last Change: 2013 Jul 8
+" Last Change: 2020 Jul 30
if exists("current_compiler")
finish
@@ -13,14 +13,16 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
endif
let s:cpo_save = &cpo
-set cpo-=C
+set cpo&vim
CompilerSet makeprg=xmllint\ --valid\ --noout
-
-CompilerSet errorformat=%+E%f:%l:\ %.%#\ error\ :\ %m,
- \%+W%f:%l:\ %.%#\ warning\ :\ %m,
- \%-Z%p^,
- \%-G%.%#
+CompilerSet errorformat=%E%f:%l:\ %.%#\ error\ :\ %m,
+ \%W%f:%l:\ %.%#\ warning\ :\ %m,
+ \%-Z%p^,
+ \%C%.%#,
+ \%terror:\ %m,
+ \%tarning:\ %m,
+ \%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save