Checker nvcc: allow for leading spaces in warnings.

This commit is contained in:
LCD 47 2017-02-16 08:19:32 +02:00
parent 59b98a655f
commit 6fb14d624b
2 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.8.0-23'
let g:_SYNTASTIC_VERSION = '3.8.0-24'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -69,8 +69,9 @@ function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
\ 'defaults': {'type': 'E'} })
for e in loclist
if e['text'] =~? '\m^warning:'
let e['text'] = substitute(e['text'], '\m\c^warning:\s*', '', '')
let pat = matchstr(e['text'], '\m\c^\s*warning:\s*\zs.*')
if pat !=# ''
let e['text'] = pat
let e['type'] = 'W'
endif
endfor