Skip to content

Commit

Permalink
parse php "fatal errors" properly
Browse files Browse the repository at this point in the history
  • Loading branch information
marty committed Jul 27, 2010
1 parent 7ed5105 commit a4b0399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax_checkers/php.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ endif

function! SyntaxCheckers_php_GetLocList()
let makeprg = "php -l %"
let errorformat='%-GNo syntax errors detected in%.%#,PHP Parse error: %#syntax %trror\, %m in %f on line %l,%-GErrors parsing %.%#,%-G\s%#'
let errorformat='%-GNo syntax errors detected in%.%#,PHP Parse error: %#syntax %trror\, %m in %f on line %l,PHP Fatal %trror: %m in %f on line %l,%-GErrors parsing %.%#,%-G\s%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction

0 comments on commit a4b0399

Please sign in to comment.