diff --git a/syntax_checkers/php/phpmd.vim b/syntax_checkers/php/phpmd.vim index e0a7322c..c7a744d5 100644 --- a/syntax_checkers/php/phpmd.vim +++ b/syntax_checkers/php/phpmd.vim @@ -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 != ''