Checker nvcc: allow for leading spaces in warnings.
This commit is contained in:
parent
59b98a655f
commit
6fb14d624b
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.8.0-23'
|
let g:_SYNTASTIC_VERSION = '3.8.0-24'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -69,8 +69,9 @@ function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
|
|||||||
\ 'defaults': {'type': 'E'} })
|
\ 'defaults': {'type': 'E'} })
|
||||||
|
|
||||||
for e in loclist
|
for e in loclist
|
||||||
if e['text'] =~? '\m^warning:'
|
let pat = matchstr(e['text'], '\m\c^\s*warning:\s*\zs.*')
|
||||||
let e['text'] = substitute(e['text'], '\m\c^warning:\s*', '', '')
|
if pat !=# ''
|
||||||
|
let e['text'] = pat
|
||||||
let e['type'] = 'W'
|
let e['type'] = 'W'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user