Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 1 | " Vim compiler file |
| 2 | " Compiler: GNU C Compiler |
| 3 | " Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> |
| 4 | " Latest Revision: 2005-06-29 |
| 5 | |
| 6 | if exists("current_compiler") |
| 7 | finish |
| 8 | endif |
| 9 | let current_compiler = "gcc" |
| 10 | |
| 11 | if exists(":CompilerSet") != 2 |
| 12 | command -nargs=* CompilerSet setlocal <args> |
| 13 | endif |
| 14 | |
| 15 | let s:cpo_save = &cpo |
| 16 | set cpo-=C |
| 17 | |
| 18 | CompilerSet errorformat= |
| 19 | \%*[^\"]\"%f\"%*\\D%l:\ %m, |
| 20 | \\"%f\"%*\\D%l:\ %m, |
| 21 | \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once, |
| 22 | \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.), |
| 23 | \%f:%l:\ %m, |
| 24 | \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m, |
| 25 | \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f', |
| 26 | \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f', |
| 27 | \%DMaking\ %*\\a\ in\ %f |
| 28 | |
| 29 | let &cpo = s:cpo_save |
| 30 | unlet s:cpo_save |