Mercurial > vim
view runtime/compiler/jshint.vim @ 32043:6095218c9056 v9.0.1353
patch 9.0.1353: too many "else if" statements to handle option values
Commit: https://github.com/vim/vim/commit/6d611de58c8e324491415da8e79c6bd3faa3e848
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Feb 25 11:59:33 2023 +0000
patch 9.0.1353: too many "else if" statements to handle option values
Problem: Too many "else if" statements to handle option values.
Solution: Add more functions to handle option value changes. (Yegappan
Lakshmanan, closes #12058)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Feb 2023 13:00:05 +0100 |
parents | 0db0640e16e0 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: JSHint " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2019 Jul 10 if exists("current_compiler") finish endif let current_compiler = "jshint" if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif let s:cpo_save = &cpo set cpo&vim " CompilerSet makeprg=npx\ jshint\ --verbose CompilerSet makeprg=jshint\ --verbose CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m\ (%t%n), \%-G%.%# let &cpo = s:cpo_save unlet s:cpo_save