annotate runtime/compiler/spectral.vim @ 27776:addcf70c8346 v8.2.4414

patch 8.2.4414: solidity files are not recognized Commit: https://github.com/vim/vim/commit/97b231541d4e82fbc85e51121448d95bd43c50ad Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Fri Feb 18 13:45:55 2022 +0000 patch 8.2.4414: solidity files are not recognized Problem: Solidity files are not recognized. Solution: Add the *.sol pattern. (Dundar Goc, closes https://github.com/vim/vim/issues/9792)
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Feb 2022 15:00:05 +0100
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