Phpmd: fix broken regex used for syntax highlighting.

This commit is contained in:
LCD 47 2015-01-12 13:20:52 +02:00
parent 79007b01f2
commit 5429d24a59

View File

@ -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 != ''