diff --git a/syntax_checkers/php.vim b/syntax_checkers/php.vim index 0a595b792..962d3bd78 100644 --- a/syntax_checkers/php.vim +++ b/syntax_checkers/php.vim @@ -21,6 +21,6 @@ endif function! SyntaxCheckers_php_GetLocList() let makeprg = "php -l %" - let errorformat='%-GNo syntax errors detected in%.%#,%-GErrors parsing %.%#,%-G\s%#,%EParse error: syntax error\, %m in %f on line %l' + let errorformat='%-GNo syntax errors detected in%.%#,PHP Parse error: %#syntax %trror\, %m in %f on line %l,%-GErrors parsing %.%#,%-G\s%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction