summaryrefslogtreecommitdiff
path: root/ale_linters/php/php.vim
diff options
context:
space:
mode:
authorAdriaan Zonnenberg <amz@adriaan.xyz>2017-04-12 23:59:12 +0200
committerAdriaan Zonnenberg <amz@adriaan.xyz>2017-04-12 23:59:12 +0200
commit7dbf32d0d7cc93fdf891342732a662d4911d779a (patch)
treebfc46b681c2ba73e7416feb91411391b1cc11d44 /ale_linters/php/php.vim
parent0ce46fe7c8754871f48823e59135ffaaa2e98e76 (diff)
downloadale-7dbf32d0d7cc93fdf891342732a662d4911d779a.zip
PHP: Fix double errors and support fatal errors
Diffstat (limited to 'ale_linters/php/php.vim')
-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 = []