summaryrefslogtreecommitdiff
path: root/ale_linters/go
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-11 23:47:13 +0100
committerw0rp <devw0rp@gmail.com>2017-07-11 23:47:21 +0100
commit340c0bbac53df00c2d0c00d3e626776c4a6016bf (patch)
tree566b7230e948f7a3a0bb646ec52fab5e3c98103f /ale_linters/go
parentd12e990f73156506fecfe7bb229dff8b8d57ee4a (diff)
downloadale-340c0bbac53df00c2d0c00d3e626776c4a6016bf.zip
#756 Escape the paths used for the --include parameter for gometalinter, which uses RE2
Diffstat (limited to 'ale_linters/go')
-rw-r--r--ale_linters/go/gometalinter.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/go/gometalinter.vim b/ale_linters/go/gometalinter.vim
index 95251303..26bef321 100644
--- a/ale_linters/go/gometalinter.vim
+++ b/ale_linters/go/gometalinter.vim
@@ -14,7 +14,7 @@ function! ale_linters#go#gometalinter#GetCommand(buffer) abort
let l:options = ale#Var(a:buffer, 'go_gometalinter_options')
return ale#Escape(l:executable)
- \ . ' --include=' . ale#Escape(l:filename)
+ \ . ' --include=' . ale#Escape(ale#util#EscapePCRE(l:filename))
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' ' . ale#Escape(fnamemodify(l:filename, ':h'))
endfunction