Minor cleanup: regex optimisation.

This commit is contained in:
LCD 47 2015-09-17 08:38:50 +03:00
parent 8bb535bd24
commit 9371aafa86
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -33,7 +33,7 @@ function! SyntaxCheckers_go_gometalinter_GetLocList() dict
\ 'returns': [0, 1] })
for e in loclist
if e['text'] =~# '\v\((deadcode|gocyclo|golint|defercheck|varcheck|structcheck|errcheck|dupl)\)$'
if e['text'] =~# '\v\(%(deadcode|gocyclo|golint|defercheck|varcheck|structcheck|errcheck|dupl)\)$'
let e['subtype'] = 'Style'
endif
endfor