Rename to idris2
This commit is contained in:
parent
e3816a7be5
commit
2d3f31df29
1 changed files with 0 additions and 0 deletions
54
syntax_checkers/idris2/idris2.vim
Normal file
54
syntax_checkers/idris2/idris2.vim
Normal file
|
@ -0,0 +1,54 @@
|
|||
"============================================================================
|
||||
"File: idris.vim
|
||||
"Description: Syntax checking plugin for syntastic.vim
|
||||
"Maintainer: raichoo <raichoo at googlemail 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_idris_idris_checker")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_idris_idris_checker=1
|
||||
|
||||
function! SyntaxCheckers_idris_idris_IsAvailable()
|
||||
return executable("idris")
|
||||
endfunction
|
||||
|
||||
if !exists("g:syntastic_idris_options")
|
||||
let g:syntastic_idris_options = " "
|
||||
endif
|
||||
|
||||
function! SyntaxCheckers_idris_idris_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe': 'idris',
|
||||
\ 'args': "--client ':l". g:syntastic_idris_options,
|
||||
\ 'post_args': "'",
|
||||
\ 'filetype': 'idris',
|
||||
\ 'subchecker': 'idris' })
|
||||
|
||||
let errorformat =
|
||||
\ '"%f" (line %l\, column %c\):,' .
|
||||
\ 'user error (%f\:%l\:%m\),' .
|
||||
\ '%E%f:%l:%c: error: %m,' .
|
||||
\ '%E%f:%l:%c-%*[0-9]: error: %m,' .
|
||||
\ '%W%f:%l:%c: warning: %m,' .
|
||||
\ '%W%f:%l:%c-%*[0-9]: warning: %m,' .
|
||||
\ '%E%f:%l:%c:%m,' .
|
||||
\ '%E%f:%l:%c-%*[0-9]:%m,' .
|
||||
\ '%C%m,' .
|
||||
\ '%m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'postprocess': ['compressWhitespace'] })
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'idris',
|
||||
\ 'name': 'idris'})
|
Loading…
Add table
Add a link
Reference in a new issue