summaryrefslogtreecommitdiff
path: root/ale_linters/java/javac.vim
diff options
context:
space:
mode:
authorDavid LANDREAU <david.landreau@cgi.com>2018-12-09 18:22:50 +0100
committerDavid LANDREAU <david.landreau@cgi.com>2018-12-09 18:22:50 +0100
commitc7292ce892fbf3b6f35c44e1cd44d138160da981 (patch)
tree78c52b69050163fb4de179e336971fc082d3736f /ale_linters/java/javac.vim
parent9226e13b31474ac17d0c25cd27aa55bff21d55c2 (diff)
downloadale-c7292ce892fbf3b6f35c44e1cd44d138160da981.zip
javac linter: fix handling of error messages containing ':' character
Diffstat (limited to 'ale_linters/java/javac.vim')
-rw-r--r--ale_linters/java/javac.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim
index 63dcdd94..659f7d04 100644
--- a/ale_linters/java/javac.vim
+++ b/ale_linters/java/javac.vim
@@ -92,7 +92,7 @@ function! ale_linters#java#javac#Handle(buffer, lines) abort
" Main.java:13: warning: [deprecation] donaught() in Testclass has been deprecated
" Main.java:16: error: ';' expected
let l:directory = expand('#' . a:buffer . ':p:h')
- let l:pattern = '\v^(.*):(\d+): (.+):(.+)$'
+ let l:pattern = '\v^(.*):(\d+): (.{-1,}):(.+)$'
let l:col_pattern = '\v^(\s*\^)$'
let l:symbol_pattern = '\v^ +symbol: *(class|method) +([^ ]+)'
let l:output = []