PHPLint: fix syntax highlighting.

This commit is contained in:
LCD 47 2014-08-28 10:25:38 +03:00
parent 0be8cdd631
commit 18a185be78
2 changed files with 8 additions and 10 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:syntastic_start lockvar! g:syntastic_start
endif endif
let g:syntastic_version = '3.4.0-138' let g:syntastic_version = '3.4.0-139'
lockvar g:syntastic_version lockvar g:syntastic_version
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -21,32 +21,30 @@ set cpo&vim
function! SyntaxCheckers_php_phplint_GetHighlightRegex(item) function! SyntaxCheckers_php_phplint_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze') let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != '' if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return '\V' . escape(term, '\')
endif endif
let term = matchstr(a:item['text'], '\m\(class\|function\|method\) \zs\S\+\ze was declared as') let term = matchstr(a:item['text'], '\m\(class\|function\|method\) \zs\S\+\ze was declared as')
if term != '' if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return '\V' . escape(term, '\')
endif endif
let term = matchstr(a:item['text'], '\maccess forbidden to \(private\|protected\) \(class\|constant\|method\|variable\|\(private\|protected\) property\) \zs\S\+\ze') let term = matchstr(a:item['text'], '\maccess forbidden to \(private\|protected\) \(class\|constant\|method\|variable\|\(private\|protected\) property\) \zs\S\+\ze')
if term != '' if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return '\V' . escape(term, '\')
endif endif
let term = matchstr(a:item['text'], '\musing deprecated \(class\|constant\|method\|property\|variable\) \zs\S\+\ze') let term = matchstr(a:item['text'], '\musing deprecated \(class\|constant\|method\|property\|variable\) \zs\S\+\ze')
if term != '' if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return '\V' . escape(term, '\')
endif endif
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze') let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != '' if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return '\V' . escape(term, '\')
endif endif
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze') let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != '' if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return '\V' . escape(term, '\')
endif endif
let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze') let term = matchstr(a:item['text'], '\munresolved function \zs\S\+\ze')
if term != ''
return term != '' ? '\V' . escape(term, '\') : '' return term != '' ? '\V' . escape(term, '\') : ''
endif
endfunction endfunction
function! SyntaxCheckers_php_phplint_GetLocList() dict function! SyntaxCheckers_php_phplint_GetLocList() dict