summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-04-12 23:58:01 +0100
committerGitHub <noreply@github.com>2017-04-12 23:58:01 +0100
commit8afd914c6da19da217a5fb871f14d05e7b9d1a00 (patch)
treef348af5427c27071b59f0cbe3d4c001af2c50a1b /ale_linters
parent266b3a2ddf6d52cc03e47480ad9fafa4d2994ee7 (diff)
parent7dbf32d0d7cc93fdf891342732a662d4911d779a (diff)
downloadale-8afd914c6da19da217a5fb871f14d05e7b9d1a00.zip
Merge pull request #467 from adriaanzon/php-fix-double-errors
PHP: Fix double errors and support fatal errors
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/php/php.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/php/php.vim b/ale_linters/php/php.vim
index ebc21ea3..3f354de5 100644
--- a/ale_linters/php/php.vim
+++ b/ale_linters/php/php.vim
@@ -1,11 +1,11 @@
-" Author: Spencer Wood <https://github.com/scwood>
+" Author: Spencer Wood <https://github.com/scwood>, Adriaan Zonnenberg <amz@adriaan.xyz>
" Description: This file adds support for checking PHP with php-cli
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 = '\vParse error:\s+(.+unexpected ''(.+)%(expecting.+)@<!''.*|.+) in - on line (\d+)'
+ let l:pattern = '\vPHP %(Fatal|Parse) error:\s+(.+unexpected ''(.+)%(expecting.+)@<!''.*|.+) in - on line (\d+)'
let l:output = []