From 40bedf79bcca288fafc778a3b7ba347fdc45c3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20F=2E=20Bortl=C3=ADk?= Date: Sat, 23 Nov 2024 01:47:48 +0100 Subject: [PATCH] perf: remove unnecessary patterns --- after/syntax/gitlab.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/after/syntax/gitlab.vim b/after/syntax/gitlab.vim index c74943ed..31ab510c 100644 --- a/after/syntax/gitlab.vim +++ b/after/syntax/gitlab.vim @@ -16,11 +16,11 @@ let state = ' \%(' . published . '\|' . g:gitlab_discussion_tree_draft . '\)' execute 'syntax match GitlabNoteHeader "' . expanders . username . state . '" contains=GitlabDate,GitlabUnresolved,GitlabResolved,GitlabExpander,GitlabDraft,GitlabUsername' execute 'syntax match GitlabDate "' . date . '" contained' -execute 'syntax match GitlabUnresolved "\s' . g:gitlab_discussion_tree_unresolved . '\s\?" contained' -execute 'syntax match GitlabResolved "\s' . g:gitlab_discussion_tree_resolved . '\s\?" contained' +execute 'syntax match GitlabUnresolved "' . g:gitlab_discussion_tree_unresolved . '" contained' +execute 'syntax match GitlabResolved "' . g:gitlab_discussion_tree_resolved . '" contained' execute 'syntax match GitlabExpander "' . expanders . '" contained' execute 'syntax match GitlabDraft "' . g:gitlab_discussion_tree_draft . '" contained' execute 'syntax match GitlabUsername "' . username . '" contained' -execute 'syntax match GitlabMention "\%(' . expanders . '\)\@