From 5429d24a59d7f48494419ff224123e562374645f Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Mon, 12 Jan 2015 13:20:52 +0200 Subject: [PATCH] Phpmd: fix broken regex used for syntax highlighting. --- syntax_checkers/php/phpmd.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 != ''