diff options
Diffstat (limited to 'runtime/compiler')
38 files changed, 1037 insertions, 0 deletions
diff --git a/runtime/compiler/README.txt b/runtime/compiler/README.txt new file mode 100644 index 0000000000..3f0b97b83e --- /dev/null +++ b/runtime/compiler/README.txt @@ -0,0 +1,11 @@ +This directory contains Vim scripts to be used with a specific compiler. +They are used with the ":compiler" command. + +These scripts usually set options, for example 'errorformat'. +See ":help write-compiler-plugin". + +If you want to write your own compiler plugin, have a look at the other files +for how to do it, the format is simple. + +If you think a compiler plugin you have written is useful for others, please +send it to Bram@vim.org. diff --git a/runtime/compiler/ant.vim b/runtime/compiler/ant.vim new file mode 100644 index 0000000000..51cd931858 --- /dev/null +++ b/runtime/compiler/ant.vim @@ -0,0 +1,38 @@ +" Vim Compiler File +" Compiler: ant +" Maintainer: Johannes Zellner <johannes@zellner.org> +" Last Change: Tue, 27 Apr 2004 15:01:45 CEST + +if exists("current_compiler") + finish +endif +let current_compiler = "ant" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo&vim + +CompilerSet makeprg=ant + +" first line: +" ant with jikes +E, which assumes the following +" two property lines in your 'build.xml': +" +" <property name = "build.compiler" value = "jikes"/> +" <property name = "build.compiler.emacs" value = "true"/> +" +" second line: +" ant with javac +" +" note that this will work also for tasks like [wtkbuild] +" +setlocal errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m, + \%A\ %#[%.%#]\ %f:%l:\ %m,%-Z\ %#[%.%#]\ %p^,%C\ %#[%.%#]\ %#%m + +" ,%-C%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/compiler/bcc.vim b/runtime/compiler/bcc.vim new file mode 100644 index 0000000000..5bd284a581 --- /dev/null +++ b/runtime/compiler/bcc.vim @@ -0,0 +1,19 @@ +" Vim compiler file +" Compiler: bcc - Borland C +" Maintainer: Emile van Raaij (eraaij@xs4all.nl) +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "bcc" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" A workable errorformat for Borland C +CompilerSet errorformat=%*[^0-9]%n\ %f\ %l:\ %m + +" default make +CompilerSet makeprg=make diff --git a/runtime/compiler/bdf.vim b/runtime/compiler/bdf.vim new file mode 100644 index 0000000000..ae2da75e17 --- /dev/null +++ b/runtime/compiler/bdf.vim @@ -0,0 +1,30 @@ +" Vim compiler file +" Compiler: BDF to PCF Conversion +" Maintainer: Nikolai Weibull <sourc@pcppopper.org> +" URL: http://www.pcppopper.org/vim/compiler/pcp/bdf/ +" Latest Revision: 2004-05-22 +" arch-tag: 2e2f3a55-199b-468c-aa2e-d6b1a7b87806 + +if exists("current_compiler") + finish +endif +let current_compiler = "bdf" + +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=bdftopcf\ $* + +CompilerSet errorformat=%ABDF\ %trror\ on\ line\ %l:\ %m, + \%-Z%p^, + \%Cbdftopcf:\ bdf\ input\\,\ %f\\,\ corrupt, + \%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: set sts=2 sw=2: diff --git a/runtime/compiler/checkstyle.vim b/runtime/compiler/checkstyle.vim new file mode 100644 index 0000000000..8d696f0506 --- /dev/null +++ b/runtime/compiler/checkstyle.vim @@ -0,0 +1,20 @@ +" Vim compiler file +" Compiler: Checkstyle +" Maintainer: Doug Kearns <djkea2@mugca.its.monash.edu.au> +" URL: http://mugca.its.monash.edu.au/~djkea2/vim/compiler/checkstyle.vim +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "checkstyle" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet makeprg=java\ com.puppycrawl.tools.checkstyle.Main\ -f\ plain + +" sample error: WebTable.java:282: '+=' is not preceeded with whitespace. +" WebTable.java:201:1: '{' should be on the previous line. +CompilerSet errorformat=%f:%l:\ %m,%f:%l:%v:\ %m,%-G%.%# diff --git a/runtime/compiler/cs.vim b/runtime/compiler/cs.vim new file mode 100644 index 0000000000..5b75d6d2a1 --- /dev/null +++ b/runtime/compiler/cs.vim @@ -0,0 +1,19 @@ +" Vim compiler file +" Compiler: ms C# +" Maintainer: Joseph H. Yao (hyao@sina.com) +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "cs" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" default errorformat +CompilerSet errorformat& + +" default make +CompilerSet makeprg=csc\ % diff --git a/runtime/compiler/dot.vim b/runtime/compiler/dot.vim new file mode 100644 index 0000000000..0327739aae --- /dev/null +++ b/runtime/compiler/dot.vim @@ -0,0 +1,15 @@ +" Vim compiler file +" Compiler: ATT dot +" Maintainer: Marcos Macedo <bar4ka@bol.com.br> +" Last Change: 2004 May 16 + +if exists("current_compiler") + finish +endif +let current_compiler = "dot" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\" diff --git a/runtime/compiler/fortran_F.vim b/runtime/compiler/fortran_F.vim new file mode 100644 index 0000000000..d9cb47cc1f --- /dev/null +++ b/runtime/compiler/fortran_F.vim @@ -0,0 +1,27 @@ +" Vim compiler file +" Compiler: Fortran Company/NAGWare F compiler +" URL: http://www.unb.ca/chem/ajit/compiler/fortran_F.vim +" Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/> +" Version: 0.2 +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "fortran_F" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cposet=&cpoptions +set cpoptions-=C + +CompilerSet errorformat=%trror:\ %f\\,\ line\ %l:%m, + \%tarning:\ %f\\,\ line\ %l:%m, + \%tatal\ Error:\ %f\\,\ line\ %l:%m, + \%-G%.%# +CompilerSet makeprg=F + +let &cpoptions=s:cposet +unlet s:cposet diff --git a/runtime/compiler/fortran_cv.vim b/runtime/compiler/fortran_cv.vim new file mode 100644 index 0000000000..089d3b27c2 --- /dev/null +++ b/runtime/compiler/fortran_cv.vim @@ -0,0 +1,30 @@ +" Vim compiler file +" Compiler: Compaq Visual Fortran +" Maintainer: Joh.-G. Simon (johann-guenter.simon@linde-le.com) +" Last Change: 11/05/2002 + +if exists("current_compiler") + finish +endif +let current_compiler = "fortran_cv" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cposet = &cpoptions +set cpoptions-=C + +" A workable errorformat for Compaq Visual Fortran +CompilerSet errorformat= + \%E%f(%l)\ :\ Error:%m, + \%W%f(%l)\ :\ Warning:%m, + \%-Z%p%^%.%#, + \%-G%.%#, +" Compiler call +CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ % +" Visual fortran defaults to printing output on stderr +" Adjust option shellpipe accordingly + +let &cpoptions = s:cposet +unlet s:cposet diff --git a/runtime/compiler/fortran_elf90.vim b/runtime/compiler/fortran_elf90.vim new file mode 100644 index 0000000000..34c33cfaf8 --- /dev/null +++ b/runtime/compiler/fortran_elf90.vim @@ -0,0 +1,33 @@ +" Vim compiler file +" Compiler: Essential Lahey Fortran 90 +" Probably also works for Lahey Fortran 90 +" URL: http://www.unb.ca/chem/ajit/compiler/fortran_elf90.vim +" Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/> +" Version: 0.2 +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "fortran_elf90" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cposet=&cpoptions +set cpoptions-=C + +CompilerSet errorformat=\%ALine\ %l\\,\ file\ %f, + \%C%tARNING\ --%m, + \%C%tATAL\ --%m, + \%C%tBORT\ --%m, + \%+C%\\l%.%#\., + \%C%p\|, + \%C%.%#, + \%Z%$, + \%-G%.%# +CompilerSet makeprg=elf90 + +let &cpoptions=s:cposet +unlet s:cposet diff --git a/runtime/compiler/fortran_g77.vim b/runtime/compiler/fortran_g77.vim new file mode 100644 index 0000000000..94018e7f2e --- /dev/null +++ b/runtime/compiler/fortran_g77.vim @@ -0,0 +1,48 @@ +" Vim compiler file +" Compiler: g77 (GNU Fortran) +" Maintainer: Ralf Wildenhues <Ralf.Wildenhues@gmx.de> +" Last Change: $Date$ +" $Revision$ + +if exists("current_compiler") + finish +endif +let current_compiler = "fortran_g77" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo-=C + +" Note: The errorformat assumes GNU make + +" sample multiline errors (besides gcc backend one-liners): +" gev.f:14: +" parameter UPLO = 'Upper-triangle' +" ^ +" Unsupported VXT statement at (^) +" gev.f:6: +" integer desca( * ), descb( * ) +" 1 +" gev.f:19: (continued): +" end subroutine +" 2 +" Invalid declaration of or reference to symbol `desca' at (2) [initially seen at (1)] + +CompilerSet errorformat= + \%Omake:\ %r, + \%f:%l:\ warning:\ %m, + \%A%f:%l:\ (continued):, + \%W%f:%l:\ warning:, + \%A%f:%l:\ , + \%-C\ \ \ %p%*[0123456789^]%.%#, + \%-C\ \ \ %.%#, + \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f', + \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f', + \%DMaking\ %*\\a\ in\ %f, + \%Z%m + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/compiler/fortran_lf95.vim b/runtime/compiler/fortran_lf95.vim new file mode 100644 index 0000000000..685fee7b4a --- /dev/null +++ b/runtime/compiler/fortran_lf95.vim @@ -0,0 +1,27 @@ +" Vim compiler file +" Compiler: Lahey/Fujitsu Fortran 95 +" URL: http://www.unb.ca/chem/ajit/compiler/fortran_lf95.vim +" Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/> +" Version: 0.2 +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "fortran_lf95" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cposet=&cpoptions +set cpoptions-=C + +CompilerSet errorformat=\ %#%n-%t:\ \"%f\"\\,\ line\ %l:%m, + \Error\ LINK\.%n:%m, + \Warning\ LINK\.%n:%m, + \%-G%.%# +CompilerSet makeprg=lf95 + +let &cpoptions=s:cposet +unlet s:cposet diff --git a/runtime/compiler/hp_acc.vim b/runtime/compiler/hp_acc.vim new file mode 100644 index 0000000000..eaf61b2f12 --- /dev/null +++ b/runtime/compiler/hp_acc.vim @@ -0,0 +1,28 @@ +" Vim compiler file +" Compiler: HP aCC +" Maintainer: Matthias Ulrich <matthias-ulrich@web.de> +" URL: http://www.subhome.de/vim/hp_acc.vim +" Last Change: 2004 Mar 27 +" +" aCC --version says: "HP ANSI C++ B3910B A.03.13" +" This compiler has been tested on: +" hp-ux 10.20, hp-ux 11.0 and hp-ux 11.11 (64bit) +" +" Tim Brown's aCC is: "HP ANSI C++ B3910B A.03.33" +" and it also works fine... + +if exists("current_compiler") + finish +endif +let current_compiler = "hp_acc" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=%A%trror\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m, + \%A%tarning\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m\ %#, + \%Z\ \ \ \ %p^%.%#, + \%-C%.%# + +" vim:ts=8:sw=4:cindent diff --git a/runtime/compiler/icc.vim b/runtime/compiler/icc.vim new file mode 100644 index 0000000000..751fba65c7 --- /dev/null +++ b/runtime/compiler/icc.vim @@ -0,0 +1,18 @@ +" Vim compiler file +" Compiler: icc - Intel C++ +" Maintainer: Peter Puck <PtrPck@netscape.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "icc" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" I think that Intel is calling the compiler icl under Windows + +CompilerSet errorformat=%-Z%p^,%f(%l):\ remark\ #%n:%m,%f(%l)\ :\ (col.\ %c)\ remark:\ %m,%E%f(%l):\ error:\ %m,%E%f(%l):\ error:\ #%n:\ %m,%W%f(%l):\ warning\ #%n:\ %m,%W%f(%l):\ warning:\ %m,%-C%.%# + diff --git a/runtime/compiler/intel.vim b/runtime/compiler/intel.vim new file mode 100644 index 0000000000..918382646e --- /dev/null +++ b/runtime/compiler/intel.vim @@ -0,0 +1,21 @@ +" Vim compiler file +" Compiler: Intel C++ 7.1 +" Maintainer: David Harrison <david_jr@users.sourceforge.net> +" Last Change: 2004 May 16 + +if exists("current_compiler") + finish +endif +let current_compiler = "intel" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=%E%f(%l):\ error:\ %m, + \%W%f(%l):\ warning:\ %m, + \%I%f(%l):\ remark\ #%n:\ %m, + \%+C\ \ %m., + \%-Z\ \ %p^, + \%-G\\s%#, + \%-G%.%# diff --git a/runtime/compiler/irix5_c.vim b/runtime/compiler/irix5_c.vim new file mode 100644 index 0000000000..87bb9e11d9 --- /dev/null +++ b/runtime/compiler/irix5_c.vim @@ -0,0 +1,21 @@ +" Vim compiler file +" Compiler: SGI IRIX 5.3 cc +" Maintainer: David Harrison <david_jr@users.sourceforge.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "irix5_c" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=\%Ecfe:\ Error:\ %f\\,\ line\ %l:\ %m, + \%Wcfe:\ Warning:\ %n:\ %f\\,\ line\ %l:\ %m, + \%Wcfe:\ Warning\ %n:\ %f\\,\ line\ %l:\ %m, + \%W(%l)\ \ Warning\ %n:\ %m, + \%-Z\ %p^, + \-G\\s%#, + \%-G%.%# diff --git a/runtime/compiler/irix5_cpp.vim b/runtime/compiler/irix5_cpp.vim new file mode 100644 index 0000000000..f5057682c3 --- /dev/null +++ b/runtime/compiler/irix5_cpp.vim @@ -0,0 +1,21 @@ +" Vim compiler file +" Compiler: SGI IRIX 5.3 CC or NCC +" Maintainer: David Harrison <david_jr@users.sourceforge.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "irix5_cpp" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=%E\"%f\"\\,\ line\ %l:\ error(%n):\ , + \%E\"%f\"\\,\ line\ %l:\ error(%n):\ %m, + \%W\"%f\"\\,\ line\ %l:\ warning(%n):\ %m, + \%+IC++\ prelinker:\ %m, + \%-Z\ \ %p%^, + \%+C\ %\\{10}%.%#, + \%-G%.%# diff --git a/runtime/compiler/javac.vim b/runtime/compiler/javac.vim new file mode 100644 index 0000000000..296f766d65 --- /dev/null +++ b/runtime/compiler/javac.vim @@ -0,0 +1,18 @@ +" Vim compiler file +" Compiler: javac +" Maintainer: Doug Kearns <djkea2@mugca.its.monash.edu.au> +" URL: http://mugca.its.monash.edu.au/~djkea2/vim/compiler/javac.vim +" Last Change: 2004 Apr 15 + +if exists("current_compiler") + finish +endif +let current_compiler = "javac" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet makeprg=javac + +CompilerSet errorformat=%E%f:%l:\ %m,%-Z%p^,%-C%.%#,%-G%.%# diff --git a/runtime/compiler/jikes.vim b/runtime/compiler/jikes.vim new file mode 100644 index 0000000000..8566969ac0 --- /dev/null +++ b/runtime/compiler/jikes.vim @@ -0,0 +1,18 @@ +" Vim Compiler File +" Compiler: Jikes +" Maintainer: Dan Sharp <dwsharp at hotmail dot com> +" Last Change: 2004 Mar 27 +" URL: http://mywebpage.netscape.com/sharppeople/vim/compiler + +if exists("current_compiler") + finish +endif +let current_compiler = "jikes" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" Jikes defaults to printing output on stderr +CompilerSet makeprg=jikes\ -Xstdout\ +E\ \"%\" +CompilerSet errorformat=%f:%l:%v:%*\\d:%*\\d:%*\\s%m diff --git a/runtime/compiler/mips_c.vim b/runtime/compiler/mips_c.vim new file mode 100644 index 0000000000..b57eac0234 --- /dev/null +++ b/runtime/compiler/mips_c.vim @@ -0,0 +1,21 @@ +" Vim compiler file +" Compiler: SGI IRIX 6.5 MIPS C (cc) +" Maintainer: David Harrison <david_jr@users.sourceforge.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "mips_c" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%+C\ \ %m., + \%-Z\ \ %p^, + \%-G\\s%#, + \%-G%.%# diff --git a/runtime/compiler/mipspro_c89.vim b/runtime/compiler/mipspro_c89.vim new file mode 100644 index 0000000000..258a80043f --- /dev/null +++ b/runtime/compiler/mipspro_c89.vim @@ -0,0 +1,22 @@ +" Vim compiler file +" Compiler: SGI IRIX 6.5 MIPSPro C (c89) +" Maintainer: David Harrison <david_jr@users.sourceforge.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "mipspro_c89" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%-Z%p%^, + \%+C\ %\\{10}%m%., + \%+C\ \ %m, + \%-G\\s%#, + \%-G%.%# diff --git a/runtime/compiler/mipspro_cpp.vim b/runtime/compiler/mipspro_cpp.vim new file mode 100644 index 0000000000..1f6074a103 --- /dev/null +++ b/runtime/compiler/mipspro_cpp.vim @@ -0,0 +1,21 @@ +" Vim compiler file +" Compiler: SGI IRIX 6.5 MIPSPro C++ (CC) +" Maintainer: David Harrison <david_jr@users.sourceforge.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "mipspro_cpp" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%Wcc\-%n\ %.%#:\ WARNING\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%Icc\-%n\ %.%#:\ REMARK\ File\ =\ %f\%\\,\ Line\ =\ %l, + \%+C\ \ %m., + \%-Z\ \ %p^, + \%-G\\s%#, + \%-G%.%# diff --git a/runtime/compiler/modelsim_vcom.vim b/runtime/compiler/modelsim_vcom.vim new file mode 100644 index 0000000000..6aa1bde0b3 --- /dev/null +++ b/runtime/compiler/modelsim_vcom.vim @@ -0,0 +1,20 @@ +" Vim Compiler File +" Compiler: Modelsim Vcom +" Maintainer: Paul Baleme <pbaleme@mail.com> +" Last Change: September 8, 2003 +" Thanks to: allanherriman@hotmail.com + +if exists("current_compiler") + finish +endif +let current_compiler = "modelsim_vcom" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +"setlocal errorformat=\*\*\ %tRROR:\ %f(%l):\ %m,%tRROR:\ %f(%l):\ %m,%tARNING\[%*[0-9]\]:\ %f(%l):\ %m,\*\*\ %tRROR:\ %m,%tRROR:\ %m,%tARNING\[%*[0-9]\]:\ %m + +"setlocal errorformat=%tRROR:\ %f(%l):\ %m,%tARNING\[%*[0-9]\]:\ %m +CompilerSet errorformat=\*\*\ %tRROR:\ %f(%l):\ %m,\*\*\ %tRROR:\ %m,\*\*\ %tARNING:\ %m,\*\*\ %tOTE:\ %m,%tRROR:\ %f(%l):\ %m,%tARNING\[%*[0-9]\]:\ %f(%l):\ %m,%tRROR:\ %m,%tARNING\[%*[0-9]\]:\ %m + diff --git a/runtime/compiler/msvc.vim b/runtime/compiler/msvc.vim new file mode 100644 index 0000000000..5fb1f24b36 --- /dev/null +++ b/runtime/compiler/msvc.vim @@ -0,0 +1,17 @@ +" Vim compiler file +" Compiler: Miscrosoft Visual C +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last Change: 2004 Mar 19 + +if exists("current_compiler") + finish +endif +let current_compiler = "msvc" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" The errorformat for MSVC is the default. +CompilerSet errorformat& +CompilerSet makeprg=nmake diff --git a/runtime/compiler/neato.vim b/runtime/compiler/neato.vim new file mode 100644 index 0000000000..bd184b7f6e --- /dev/null +++ b/runtime/compiler/neato.vim @@ -0,0 +1,15 @@ +" Vim compiler file +" Compiler: ATT neato +" Maintainer: Marcos Macedo <bar4ka@bol.com.br> +" Last Change: 2004 May 16 + +if exists("current_compiler") + finish +endif +let current_compiler = "neato" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet makeprg=neato\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\" diff --git a/runtime/compiler/onsgmls.vim b/runtime/compiler/onsgmls.vim new file mode 100644 index 0000000000..130d3e21b3 --- /dev/null +++ b/runtime/compiler/onsgmls.vim @@ -0,0 +1,24 @@ +" Vim compiler file +" Compiler: onsgmls +" Maintainer: Robert Rowsome <rowsome@wam.umd.edu> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "onsgmls" + +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=onsgmls\ -s\ % + +CompilerSet errorformat=onsgmls:%f:%l:%c:%t:%m, + \onsgmls:%f:%l:%c:%m + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/compiler/pbx.vim b/runtime/compiler/pbx.vim new file mode 100644 index 0000000000..9e81ea7355 --- /dev/null +++ b/runtime/compiler/pbx.vim @@ -0,0 +1,20 @@ +" Vim compiler file +" Compiler: Apple Project Builder +" Maintainer: Alexander von Below (public@vonBelow.Com) +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "pbx" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +" The compiler actually is gcc, so the errorformat is unchanged +CompilerSet errorformat& + +" default make +CompilerSet makeprg=pbxbuild + diff --git a/runtime/compiler/perl.vim b/runtime/compiler/perl.vim new file mode 100644 index 0000000000..1d30472bbe --- /dev/null +++ b/runtime/compiler/perl.vim @@ -0,0 +1,39 @@ +" Vim Compiler File +" Compiler: Perl syntax checks (perl -Wc) +" Maintainer: Christian J. Robinson <infynity@onewest.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "perl" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:savecpo = &cpo +set cpo&vim + +if getline(1) =~# '-[^ ]*T' + CompilerSet makeprg=perl\ -WTc\ % +else + CompilerSet makeprg=perl\ -Wc\ % +endif + +CompilerSet errorformat= + \%-G%.%#had\ compilation\ errors., + \%-G%.%#syntax\ OK, + \%m\ at\ %f\ line\ %l., + \%+A%.%#\ at\ %f\ line\ %l\\,%.%#, + \%+C%.%# + +" Explanation: +" %-G%.%#had\ compilation\ errors., - Ignore the obvious. +" %-G%.%#syntax\ OK, - Don't include the 'a-okay' message. +" %m\ at\ %f\ line\ %l., - Most errors... +" %+A%.%#\ at\ %f\ line\ %l\\,%.%#, - As above, including ', near ...' +" %+C%.%# - ... Which can be multi-line. + +let &cpo = s:savecpo +unlet s:savecpo diff --git a/runtime/compiler/pyunit.vim b/runtime/compiler/pyunit.vim new file mode 100644 index 0000000000..2a4ea92b68 --- /dev/null +++ b/runtime/compiler/pyunit.vim @@ -0,0 +1,16 @@ +" Vim compiler file +" Compiler: Unit testing tool for Python +" Maintainer: Max Ischenko <mfi@ukr.net> +" Last Change: 2004 Mar 27 + +if exists("current_compiler") + finish +endif +let current_compiler = "pyunit" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +CompilerSet efm=%C\ %.%#,%A\ |