added extra warning output detection, removing unnecessary autoindent spec

This commit is contained in:
Justin Donaldson 2012-07-17 17:41:04 -07:00
parent dcbd112521
commit 4aabaf5944
2 changed files with 7 additions and 9 deletions

View file

@ -225,18 +225,16 @@ function! s:SetCompiler()
let lines = readfile(vaxe_hxml)
let abspath = filter(lines,'match(v:val,"^\s*-D\s*absolute_path")')
let &l:errorformat="%I%f:%l: characters %c-%*[0-9] : Warning : %m
\,%E%f:%l: characters %c-%*[0-9] : %m
\,%E%f:%l: lines %*[0-9]-%*[0-9] : %m"
" if -D absolute_path is specified, then traces contain path information,
" and errorfmt can use the file/folder location
if (len(abspath))
let &l:errorformat="%E%f:%l: characters %c-%*[0-9] : %m
\,%E%f:%l: lines %*[0-9]-%*[0-9] : %m
\,%I%f:%l: %m"
"\,%I%m"
else
let &l:errorformat="%E%f:%l: characters %c-%*[0-9] : %m
\,%E%f:%l: lines %*[0-9]-%*[0-9] : %m
\,%I%m"
let &l:errorformat .= ",%I%f:%l: %m"
endif
" general catch all regex that will grab misc stdout
let &l:errorformat .= ",%I%m"
endfunction
" returns a list of compiler class paths

View file

@ -11,5 +11,5 @@ let b:did_indent = 1
" C indenting is not too bad.
setlocal cindent
setlocal cinoptions+=j1,J1
setlocal indentkeys=0{,0},0),0],0#,!^F,o,O,e
setlocal indentkeys=0{,0},0),0],!^F,o,O,e
let b:undo_indent = "setl cin<"