Last active
August 29, 2015 14:25
-
-
Save h14i/117d5d2f95d953e072b6 to your computer and use it in GitHub Desktop.
vim compiler plugin for dscanner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" :compiler dscanner | |
" License: Public Domain | |
scriptencoding utf-8 | |
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'dscanner' | |
if exists(':CompilerSet') != 2 | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo = &cpo | |
set cpo&vim | |
set cpo-=C | |
" syntax check | |
" CompilerSet makeprg=dscanner\ -s\ % | |
" style check | |
CompilerSet makeprg=dscanner\ -S\ % | |
CompilerSet errorformat= | |
\%f(%l:%c)[%trror]:\ %m, | |
\%f(%l:%c)[%tarn]:\ %m, | |
\%f(%l:%c)%m | |
let &cpo = s:cpo | |
unlet s:cpo | |
" vim: set ft=vim sts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment