view runtime/compiler/tidy.vim @ 17360:cb71b5e9e5d9 v8.1.1679

patch 8.1.1679: test using SwapExists autocommand file may fail commit https://github.com/vim/vim/commit/eaa49e40d7e7f84deef14424c84ef1da0796fa58 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 13 18:08:59 2019 +0200 patch 8.1.1679: test using SwapExists autocommand file may fail Problem: Test using SwapExists autocommand file may fail. Solution: Remove the SwapExists autocommand.
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Jul 2019 18:15:04 +0200
parents 34c45ee4210d
children 34b4eb3a8458
line wrap: on
line source

" Vim compiler file
" Compiler:	HTML Tidy
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2016 Apr 21

if exists("current_compiler")
  finish
endif
let current_compiler = "tidy"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S

" foo.html:8:1: Warning: inserting missing 'foobar' element
" foo.html:9:2: Error: <foobar> is not recognized!
CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#