summaryrefslogtreecommitdiff
path: root/ale_linters/vala
diff options
context:
space:
mode:
authorAtsuya Takagi <asoftonight@gmail.com>2021-01-02 17:28:06 +0900
committerAtsuya Takagi <asoftonight@gmail.com>2021-01-23 00:08:01 +0900
commitc15d9538cda6ac4bc7cd258b2a0a271ed22ac350 (patch)
tree74a62ae5712e6077adcce60b530010103063af19 /ale_linters/vala
parentb3010ad7930344a06163a99182c21e4c768f8a23 (diff)
downloadale-c15d9538cda6ac4bc7cd258b2a0a271ed22ac350.zip
use the correct regex to match the escape sequences...
Diffstat (limited to 'ale_linters/vala')
-rw-r--r--ale_linters/vala/vala_lint.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/ale_linters/vala/vala_lint.vim b/ale_linters/vala/vala_lint.vim
index 0940f294..b0c86fcc 100644
--- a/ale_linters/vala/vala_lint.vim
+++ b/ale_linters/vala/vala_lint.vim
@@ -12,9 +12,7 @@ function! ale_linters#vala#vala_lint#Handle(buffer, lines) abort
for l:line in a:lines
" remove color escape sequences since vala-lint doesn't support
" output without colors
- let l:cleaned_line = substitute(l:line, '\x1b\[[0-9;]*m', '', 'g')
- execute 'echo l:line'
- execute 'echo l:cleaned_line'
+ let l:cleaned_line = substitute(l:line, '\e\[[0-9;]\+[mK]', '', 'g')
let l:match = matchlist(l:cleaned_line, l:pattern)
if len(l:match) == 0