Checker nvcc: mark warning messages as such.
This commit is contained in:
parent
f660d1074f
commit
59b98a655f
@ -63,7 +63,17 @@ function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
|
|||||||
\ '%DMaking %*\a in %f,'.
|
\ '%DMaking %*\a in %f,'.
|
||||||
\ '%f|%l| %m'
|
\ '%f|%l| %m'
|
||||||
|
|
||||||
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
let loclist = SyntasticMake({
|
||||||
|
\ 'makeprg': makeprg,
|
||||||
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'defaults': {'type': 'E'} })
|
||||||
|
|
||||||
|
for e in loclist
|
||||||
|
if e['text'] =~? '\m^warning:'
|
||||||
|
let e['text'] = substitute(e['text'], '\m\c^warning:\s*', '', '')
|
||||||
|
let e['type'] = 'W'
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
if dummy !=# ''
|
if dummy !=# ''
|
||||||
call delete(dummy)
|
call delete(dummy)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user