From 9371aafa864b1bddb5c06551d02a86a12cdcdae4 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 17 Sep 2015 08:38:50 +0300 Subject: [PATCH] Minor cleanup: regex optimisation. --- plugin/syntastic.vim | 2 +- syntax_checkers/go/gometalinter.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 93a1370d..16a4985f 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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 diff --git a/syntax_checkers/go/gometalinter.vim b/syntax_checkers/go/gometalinter.vim index c2bc9325..c61a7bb1 100644 --- a/syntax_checkers/go/gometalinter.vim +++ b/syntax_checkers/go/gometalinter.vim @@ -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