summaryrefslogtreecommitdiff
path: root/ale_linters/php/php.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/php/php.vim')
-rw-r--r--ale_linters/php/php.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/php/php.vim b/ale_linters/php/php.vim
index aa5229cf..6edc66b3 100644
--- a/ale_linters/php/php.vim
+++ b/ale_linters/php/php.vim
@@ -5,7 +5,7 @@ function! ale_linters#php#php#Handle(buffer, lines) abort
" Matches patterns like the following:
"
" PHP Parse error: syntax error, unexpected ';', expecting ']' in - on line 15
- let l:pattern = 'Parse error:\s\+\(.\{-}unexpected ''\(.\{-}\)''.\{-}\|.*\) in - on line \(\d\+\)'
+ let l:pattern = '\vParse error:\s+(.+unexpected ''(.+)%(expecting.+)@<!''.*|.+) in - on line (\d+)'
let l:output = []