mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
vim-patch:d15114c: runtime(compiler): include svelte-check compiler
closes: vim/vim#16704
d15114c148
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
This commit is contained in:

committed by
Christian Clason

parent
e641155b02
commit
5f11efe423
19
runtime/compiler/svelte-check.vim
Normal file
19
runtime/compiler/svelte-check.vim
Normal file
@@ -0,0 +1,19 @@
|
||||
" Vim compiler file
|
||||
" Compiler: svelte-check
|
||||
" Maintainer: @Konfekt
|
||||
" Last Change: 2025 Feb 22
|
||||
|
||||
if exists("current_compiler") | finish | endif
|
||||
let current_compiler = "svelte-check"
|
||||
|
||||
CompilerSet makeprg=npx\ svelte-check\ --output\ machine
|
||||
CompilerSet errorformat=%*\\d\ %t%*\\a\ \"%f\"\ %l:%c\ %m
|
||||
CompilerSet errorformat+=%-G%.%#
|
||||
|
||||
" " Fall-back for versions of svelte-check that don't support --output machine
|
||||
" " before May 2020 https://github.com/sveltejs/language-tools/commit/9f7a90379d287a41621a5e78af5b010a8ab810c3
|
||||
" " which is before the first production release 1.1.31 of Svelte-Check
|
||||
" CompilerSet makeprg=npx\ svelte-check
|
||||
" CompilerSet errorformat=%E%f:%l:%c,
|
||||
" CompilerSet errorformat+=%+ZError\:\ %m,
|
||||
" CompilerSet errorformat+=%-G%.%#
|
Reference in New Issue
Block a user