| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | " Vim compiler file | 
					
						
							|  |  |  | " Compiler:	HTML Tidy | 
					
						
							| 
									
										
										
										
											2013-07-09 15:44:17 +02:00
										 |  |  | " Maintainer:	Doug Kearns <dougkearns@gmail.com> | 
					
						
							|  |  |  | " Last Change:	2013 Jul 7 | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-09 15:44:17 +02:00
										 |  |  | CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ % | 
					
						
							| 
									
										
										
										
											2004-06-13 20:20:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element | 
					
						
							|  |  |  | " sample error:   foo.html:9:2: Error: <foobar> is not recognized! | 
					
						
							|  |  |  | CompilerSet errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%# |