2016-08-15 11:05:25 -04:00
|
|
|
"============================================================================
|
|
|
|
"File: solc.vim
|
|
|
|
"Description: Solidity syntax checker - using solc
|
|
|
|
"Maintainer: Jacob Cholewa <jacob@cholewa.dk>
|
2016-08-15 15:55:03 -04:00
|
|
|
"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.
|
2016-08-15 16:22:28 -04:00
|
|
|
"
|
2016-08-15 11:05:25 -04:00
|
|
|
"============================================================================
|
|
|
|
|
|
|
|
if exists('g:loaded_syntastic_solidity_solc_checker')
|
2016-08-15 16:22:28 -04:00
|
|
|
finish
|
2016-08-15 11:05:25 -04:00
|
|
|
endif
|
|
|
|
let g:loaded_syntastic_solidity_solc_checker = 1
|
|
|
|
|
|
|
|
let s:save_cpo = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
function! SyntaxCheckers_solidity_solc_GetLocList() dict
|
2016-08-15 16:22:28 -04:00
|
|
|
let makeprg = self.makeprgBuild({})
|
2016-08-15 11:05:25 -04:00
|
|
|
|
2019-05-05 00:51:48 -04:00
|
|
|
let errorformat = '%f:%l:%c: %trror: %m,%f:%l:%c: %tarning: %m'
|
2016-08-15 11:05:25 -04:00
|
|
|
|
2016-08-15 16:22:28 -04:00
|
|
|
return SyntasticMake({
|
|
|
|
\ 'makeprg': makeprg,
|
|
|
|
\ 'errorformat': errorformat })
|
2016-08-15 11:05:25 -04:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
2016-08-15 16:22:28 -04:00
|
|
|
\ 'filetype': 'solidity',
|
|
|
|
\ 'name': 'solc'})
|
2016-08-15 11:05:25 -04:00
|
|
|
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
unlet s:save_cpo
|
2016-08-15 13:49:30 -04:00
|
|
|
|
|
|
|
" vim: set sw=4 sts=4 et fdm=marker:
|