Commit: runtime(compiler): improve svelte-check

1 view
Skip to first unread message

Christian Brabandt

unread,
Feb 27, 2025, 1:15:17 PM2/27/25
to vim...@googlegroups.com
runtime(compiler): improve svelte-check

Commit: https://github.com/vim/vim/commit/3d75ec7401850e8a80ae7ab5ad1b84f47bc32095
Author: Konfekt <Kon...@users.noreply.github.com>
Date: Thu Feb 27 19:09:52 2025 +0100

runtime(compiler): improve svelte-check

closes: https://github.com/vim/vim/issues/16749

Signed-off-by: Konfekt <Kon...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/compiler/svelte-check.vim b/runtime/compiler/svelte-check.vim
index 883aefdbc..bfffe2810 100644
--- a/runtime/compiler/svelte-check.vim
+++ b/runtime/compiler/svelte-check.vim
@@ -1,19 +1,21 @@
" Vim compiler file
" Compiler: svelte-check
" Maintainer: @Konfekt
-" Last Change: 2025 Feb 22
+" Last Change: 2025 Feb 27

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=%*\d\ %t%*\a\ \"%f\"\ %l:%c\ \"%m\",
+CompilerSet errorformat+=%-G%*\d\ START\ %.%#,
+CompilerSet errorformat+=%-G%*\d\ COMPLETED\ %.%#,
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%.%#
+" CompilerSet errorformat=%A%f:%l:%c,
+" CompilerSet errorformat+=%C%t%*\a\:\ %m,
+" CompilerSet errorformat+=%-G%.%#,
Reply all
Reply to author
Forward
0 new messages