Skip to content

Instantly share code, notes, and snippets.

@h14i
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h14i/117d5d2f95d953e072b6 to your computer and use it in GitHub Desktop.
Save h14i/117d5d2f95d953e072b6 to your computer and use it in GitHub Desktop.
vim compiler plugin for dscanner
" :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