Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
PHPLint: fix syntax highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcd047 committed Aug 28, 2014
1 parent 0be8cdd commit 18a185b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion plugin/syntastic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:syntastic_start
endif

let g:syntastic_version = '3.4.0-138'
let g:syntastic_version = '3.4.0-139'
lockvar g:syntastic_version

" Sanity checks {{{1
Expand Down
16 changes: 7 additions & 9 deletions syntax_checkers/php/phplint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,30 @@ set cpo&vim
function! SyntaxCheckers_php_phplint_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
return '\V' . escape(term, '\')
endif
let term = matchstr(a:item['text'], '\m\(class\|function\|method\) \zs\S\+\ze was declared as')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
return '\V' . escape(term, '\')
endif
let term = matchstr(a:item['text'], '\maccess forbidden to \(private\|protected\) \(class\|constant\|method\|variable\|\(private\|protected\) property\) \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
return '\V' . escape(term, '\')
endif
let term = matchstr(a:item['text'], '\musing deprecated \(class\|constant\|method\|property\|variable\) \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
return '\V' . escape(term, '\')
endif
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
return '\V' . escape(term, '\')
endif
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
return '\V' . escape(term, '\')
endif
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : ''
endif
return term != '' ? '\V' . escape(term, '\') : ''
endfunction

function! SyntaxCheckers_php_phplint_GetLocList() dict
Expand Down

0 comments on commit 18a185b

Please sign in to comment.