Permalink
Browse files

"No syntax errors" bug for some PHP versions, fixes #5

  • Loading branch information...
1 parent 5525bc7 commit 5cfa6dc8362d66fc6d9ceb1ef724ddf65b909417 @joonty committed Dec 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 autoload/phpqa.vim
View
@@ -89,7 +89,8 @@ function! phpqa#PhpLint()
call s:RemoveSigns()
let l:php_output=system(g:phpqa_php_cmd." -l ".@%." 1>/dev/null")
let l:php_list=split(l:php_output, "\n")
- if 0 != len(l:php_list)
+
+ if 0 != len(l:php_list) && match(l:php_list[0],"No syntax errors") == -1
let l:php_list[0] = "P ".l:php_list[0]
set errorformat=%t\ %m\ in\ %f\ on\ line\ %l
lexpr l:php_list[0]

0 comments on commit 5cfa6dc

Please sign in to comment.