annotate runtime/compiler/spectral.vim @ 30156:d58331e0f14a v9.0.0414

patch 9.0.0414: matchstr() still does not match column offset Commit: https://github.com/vim/vim/commit/753aead960f163d0d3f8ce523ea523f2e0cec06d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 8 12:17:06 2022 +0100 patch 9.0.0414: matchstr() still does not match column offset Problem: matchstr() still does not match column offset when done after a text search. Solution: Only use the line number for a multi-line search. Fix the test. (closes #10938)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Sep 2022 13:30:03 +0200
parents bdda48f01a68
children e1df51f68736
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25402
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim compiler file
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Compiler: Spectral for YAML
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Romain Lafourcade <romainlafourcade@gmail.com>
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2021 July 21
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists("current_compiler")
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 let current_compiler = "spectral"
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 if exists(":CompilerSet") != 2
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 command -nargs=* CompilerSet setlocal <args>
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 endif
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 CompilerSet makeprg=spectral\ lint\ %\ -f\ text
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 CompilerSet errorformat=%f:%l:%c\ %t%.%\\{-}\ %m
bdda48f01a68 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17