mirror of
https://github.com/amix/vimrc
synced 2025-06-29 02:55:01 +08:00
Added not added new plugin files
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
"============================================================================
|
||||
"File: stylelint.vim
|
||||
"Description: Syntax checking plugin for syntastic using `stylelint`
|
||||
" (https://github.com/stylelint/stylelint).
|
||||
"Maintainer: Tim Carry <tim at pixelastic dot com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_html_stylelint_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_html_stylelint_checker = 1
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'html',
|
||||
\ 'name': 'stylelint',
|
||||
\ 'redirect': 'css/stylelint'})
|
||||
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,23 @@
|
||||
"============================================================================
|
||||
"File: stylelint.vim
|
||||
"Description: Syntax checking plugin for syntastic
|
||||
"Maintainer: LCD 47 <lcd047 at gmail dot com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_less_stylelint_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_less_stylelint_checker = 1
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'less',
|
||||
\ 'name': 'stylelint',
|
||||
\ 'redirect': 'css/stylelint'})
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
106
sources_non_forked/syntastic/syntax_checkers/perl6/perl6.vim
Normal file
106
sources_non_forked/syntastic/syntax_checkers/perl6/perl6.vim
Normal file
@ -0,0 +1,106 @@
|
||||
"============================================================================
|
||||
"File: perl6.vim
|
||||
"Description: Syntax checking plugin for syntastic
|
||||
"Maintainer: Claudio Ramirez <pub.claudio at gmail dot com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"============================================================================
|
||||
"
|
||||
" Security:
|
||||
"
|
||||
" This checker runs 'perl6 -c' against your file, which in turn executes
|
||||
" any BEGIN and CHECK blocks in your file. This is probably fine if you
|
||||
" wrote the file yourself, but it can be a problem if you're trying to
|
||||
" check third party files. If you are 100% willing to let Vim run the code
|
||||
" in your file, set g:syntastic_enable_perl6_checker to 1 in your vimrc
|
||||
" to enable this
|
||||
" checker:
|
||||
"
|
||||
" let g:syntastic_enable_perl6_checker = 1
|
||||
"
|
||||
" Reference:
|
||||
"
|
||||
" - https://docs.perl6.org/programs/00-running
|
||||
|
||||
if exists('g:loaded_syntastic_perl6_perl6_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_perl6_perl6_checker = 1
|
||||
|
||||
if !exists('g:syntastic_perl6_lib_path')
|
||||
let g:syntastic_perl6_lib_path = []
|
||||
endif
|
||||
|
||||
if !exists('g:syntastic_perl6_perl6_sort')
|
||||
let g:syntastic_perl6_perl6_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_perl6_perl6_IsAvailable() dict " {{{1
|
||||
" don't call executable() here, to allow things like
|
||||
" let g:syntastic_perl6_perl6_exec = '/usr/bin/env perl6'
|
||||
silent! call syntastic#util#system(self.getExecEscaped() . ' -e ' . syntastic#util#shescape('exit(0)'))
|
||||
return (v:shell_error == 0) && syntastic#util#versionIsAtLeast(self.getVersion(), [2017, 1])
|
||||
endfunction " }}}1
|
||||
|
||||
function! SyntaxCheckers_perl6_perl6_GetHighlightRegex(item) " {{{1
|
||||
let term = matchstr(a:item['text'], '\m''\zs.\{-}\ze''')
|
||||
if term !=# ''
|
||||
return '\V' . escape(term, '\')
|
||||
endif
|
||||
let term = matchstr(a:item['text'], '\m^Undeclared .\+:\W\zs\S\+\ze')
|
||||
if term !=# ''
|
||||
return '\V' . escape(term, '\')
|
||||
endif
|
||||
let term = matchstr(a:item['text'], '\mCould not find \zs.\{-}\ze at')
|
||||
if term !=# ''
|
||||
return '\V' . escape(term, '\')
|
||||
endif
|
||||
let term = matchstr(a:item['text'], '\mCould not find \zs\S\+$')
|
||||
return term !=# '' ? '\V' . escape(term, '\') : ''
|
||||
endfunction " }}}1
|
||||
|
||||
function! SyntaxCheckers_perl6_perl6_GetLocList() dict " {{{1
|
||||
if type(g:syntastic_perl6_lib_path) == type('')
|
||||
call syntastic#log#oneTimeWarn('variable g:syntastic_perl6_lib_path should be a list')
|
||||
let includes = split(g:syntastic_perl6_lib_path, ',')
|
||||
else
|
||||
let includes = copy(syntastic#util#var('perl6_lib_path', []))
|
||||
endif
|
||||
" support for PERL6LIB environment variable
|
||||
if $PERL6LIB !=# ''
|
||||
let includes += split($PERL6LIB, ':')
|
||||
endif
|
||||
call map(includes, '"-I" . v:val')
|
||||
|
||||
let errorformat =
|
||||
\ '%f:%l:%c:%m,' .
|
||||
\ ':%l:%c:%m'
|
||||
|
||||
let makeprg = self.makeprgBuild({ 'args_before': ['-c'] + includes })
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'env': { 'RAKUDO_EXCEPTIONS_HANDLER': 'JSON' },
|
||||
\ 'defaults': { 'bufnr': bufnr(''), 'type': 'E' },
|
||||
\ 'returns': [0, 1],
|
||||
\ 'preprocess': 'perl6',
|
||||
\ 'postprocess': ['guards', 'iconv'] })
|
||||
endfunction " }}}1
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'perl6',
|
||||
\ 'name': 'perl6',
|
||||
\ 'enable': 'enable_perl6_checker'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,43 @@
|
||||
"============================================================================
|
||||
"File: solhint.vim
|
||||
"Description: Solidity syntax checker - using solhint
|
||||
"Maintainer: Brett Sun <qisheng.brett.sun@gmail.com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_solidity_solhint_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_solidity_solhint_checker = 1
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_solidity_solhint_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args_after': '-f compact' })
|
||||
|
||||
let errorformat =
|
||||
\ '%E%f: line %l\, col %c\, Error - %m,' .
|
||||
\ '%W%f: line %l\, col %c\, Warning - %m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'subtype': 'Style',
|
||||
\ 'returns': [0, 1] })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'solidity',
|
||||
\ 'name': 'solhint'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
@ -0,0 +1,43 @@
|
||||
"============================================================================
|
||||
"File: tsqllint.vim
|
||||
"Description: Syntax checking plugin for syntastic
|
||||
"Maintainer: Daniel Walker <dwalker@fifo99.com>
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists('g:loaded_syntastic_sql_tsqllint_checker')
|
||||
finish
|
||||
endif
|
||||
|
||||
let g:loaded_syntastic_sql_tsqllint_checker = 1
|
||||
|
||||
if exists('g:syntastic_sql_tsqllint_sort')
|
||||
let g:syntastic_sql_tsqllint_sort = 1
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_sql_tsqllint_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({})
|
||||
|
||||
let errorformat = '%f(%l\,%c): %m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'sql',
|
||||
\ 'name': 'tsqllint'})
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker:
|
Reference in New Issue
Block a user