| 
									
										
										
										
											2020-08-15 18:55:18 +02:00
										 |  |  | " Vim compiler file | 
					
						
							|  |  |  | " Compiler:	Jest | 
					
						
							|  |  |  | " Maintainer:	Doug Kearns <dougkearns@gmail.com> | 
					
						
							| 
									
										
										
										
											2022-03-08 21:35:07 +00:00
										 |  |  | " Last Change:	2021 Nov 20 | 
					
						
							| 
									
										
										
										
											2020-08-15 18:55:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | if exists("current_compiler") | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | let current_compiler = "jest" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if exists(":CompilerSet") != 2		" older Vim always used :setlocal | 
					
						
							|  |  |  |   command -nargs=* CompilerSet setlocal <args> | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let s:cpo_save = &cpo | 
					
						
							|  |  |  | set cpo&vim | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-08 21:35:07 +00:00
										 |  |  | " CompilerSet makeprg=npx\ --no-install\ jest\ --no-colors | 
					
						
							| 
									
										
										
										
											2020-08-15 18:55:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | CompilerSet makeprg=jest\ --no-colors | 
					
						
							| 
									
										
										
										
											2022-03-08 21:35:07 +00:00
										 |  |  | CompilerSet errorformat=%-A\ \ ●\ Console, | 
					
						
							|  |  |  | 		       \%E\ \ ●\ %m, | 
					
						
							| 
									
										
										
										
											2020-08-15 18:55:18 +02:00
										 |  |  | 		       \%Z\ %\\{4}%.%#Error:\ %f:\ %m\ (%l:%c):%\\=, | 
					
						
							|  |  |  | 		       \%Z\ %\\{6}at\ %\\S%#\ (%f:%l:%c), | 
					
						
							| 
									
										
										
										
											2022-03-08 21:35:07 +00:00
										 |  |  | 		       \%Z\ %\\{6}at\ %\\S%#\ %f:%l:%c, | 
					
						
							| 
									
										
										
										
											2020-08-15 18:55:18 +02:00
										 |  |  | 		       \%+C\ %\\{4}%\\w%.%#, | 
					
						
							|  |  |  | 		       \%+C\ %\\{4}%[-+]%.%#, | 
					
						
							|  |  |  | 		       \%-C%.%#, | 
					
						
							|  |  |  | 		       \%-G%.%# | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let &cpo = s:cpo_save | 
					
						
							|  |  |  | unlet s:cpo_save |