home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / compiler / gcc.vim < prev    next >
Encoding:
Text File  |  2012-05-31  |  1.1 KB  |  40 lines

  1. " Vim compiler file
  2. " Compiler:         GNU C Compiler
  3. " Maintainer:       Nikolai Weibull <now@bitwi.se>
  4. " Latest Revision:  2010-10-14
  5.  
  6. if exists("current_compiler")
  7.   finish
  8. endif
  9. let current_compiler = "gcc"
  10.  
  11. let s:cpo_save = &cpo
  12. set cpo&vim
  13.  
  14. CompilerSet errorformat=
  15.       \%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
  16.       \%*[^\"]\"%f\"%*\\D%l:\ %m,
  17.       \\"%f\"%*\\D%l:%c:\ %m,
  18.       \\"%f\"%*\\D%l:\ %m,
  19.       \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,
  20.       \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
  21.       \%f:%l:%c:\ %trror:\ %m,
  22.       \%f:%l:%c:\ %tarning:\ %m,
  23.       \%f:%l:%c:\ %m,
  24.       \%f:%l:\ %trror:\ %m,
  25.       \%f:%l:\ %tarning:\ %m,
  26.       \%f:%l:\ %m,
  27.       \\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
  28.       \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
  29.       \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
  30.       \%D%*\\a:\ Entering\ directory\ `%f',
  31.       \%X%*\\a:\ Leaving\ directory\ `%f',
  32.       \%DMaking\ %*\\a\ in\ %f
  33.  
  34. if exists('g:compiler_gcc_ignore_unmatched_lines')
  35.   CompilerSet errorformat+=%-G%.%#
  36. endif
  37.  
  38. let &cpo = s:cpo_save
  39. unlet s:cpo_save
  40.