Phpmd: fix broken regex used for syntax highlighting.
This commit is contained in:
parent
79007b01f2
commit
5429d24a59
@ -41,7 +41,7 @@ function! SyntaxCheckers_php_phpmd_GetHighlightRegex(item)
|
||||
endif
|
||||
let term = matchstr(a:item['text'], "\\m\\C^The '\\S\\+()' method which returns ")
|
||||
if term != ''
|
||||
return '\V'.substitute(term, "\\m\\C^The '\\(\\S\\+\\()' method which returns.*", '\1', '')
|
||||
return '\V'.substitute(term, "\\m\\C^The '\\(\\S\\+\\)()' method which returns.*", '\1', '')
|
||||
endif
|
||||
let term = matchstr(a:item['text'], '\m\C variable \S\+ should begin with ')
|
||||
if term != ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user