Merge remote-tracking branch 'syntaxerl/master'
This commit is contained in:
commit
6f437a6bf3
29
syntax_checkers/erlang/syntaxerl.vim
Normal file
29
syntax_checkers/erlang/syntaxerl.vim
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
if exists("g:loaded_syntastic_erlang_syntaxerl_checker")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
let g:loaded_syntastic_erlang_syntaxerl_checker = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
|
||||||
|
function! SyntaxCheckers_erlang_syntaxerl_GetLocList() dict
|
||||||
|
|
||||||
|
let makeprg = self.makeprgBuild({})
|
||||||
|
|
||||||
|
let errorformat =
|
||||||
|
\ '%W%f:%l: warning: %m,'.
|
||||||
|
\ '%E%f:%l: %m'
|
||||||
|
|
||||||
|
return SyntasticMake({
|
||||||
|
\ 'makeprg': makeprg,
|
||||||
|
\ 'errorformat': errorformat })
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'erlang',
|
||||||
|
\ 'name': 'syntaxerl'})
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
Loading…
x
Reference in New Issue
Block a user