Created
October 21, 2011 16:03
-
-
Save Phize/1304216 to your computer and use it in GitHub Desktop.
JavaScript (Rhino) compiler plugin.
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
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'javascript' | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo_save = &cpo | |
set cpo-=C | |
CompilerSet makeprg=js\ -w\ -strict\ % | |
CompilerSet errorformat=%Ejs:\ \"%f\"\\,\ line\ %l:\ %m, | |
\%Wjs:\ warning:\ \"%f\"\\,\ line\ %l:\ %m, | |
\%-G%.%# | |
let &cpo = s:cpo_save | |
unlet s:cpo_save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment