]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): include svelte-check compiler
authorKonfekt <Konfekt@users.noreply.github.com>
Sat, 22 Feb 2025 14:07:09 +0000 (15:07 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 22 Feb 2025 14:07:09 +0000 (15:07 +0100)
closes: #16704

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/compiler/svelte-check.vim [new file with mode: 0644]

index a17e53281be134b01b3b628748ff8e6cc978df8a..7a080f936dd12fa075d12c89e55fc06fef858e09 100644 (file)
@@ -98,6 +98,7 @@ runtime/compiler/se.vim                       @dkearns
 runtime/compiler/shellcheck.vim                @dkearns
 runtime/compiler/sml.vim               @dkearns
 runtime/compiler/spectral.vim          @romainl
+runtime/compiler/svelte-check.vim              @Konfekt
 runtime/compiler/stylelint.vim         @dkearns
 runtime/compiler/tcl.vim               @dkearns
 runtime/compiler/tidy.vim              @dkearns
diff --git a/runtime/compiler/svelte-check.vim b/runtime/compiler/svelte-check.vim
new file mode 100644 (file)
index 0000000..883aefd
--- /dev/null
@@ -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%.%#