Skip to content

Commit

Permalink
perf: remove unnecessary patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubbortlik committed Dec 6, 2024
1 parent 6da4f7a commit 40bedf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions after/syntax/gitlab.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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 . '\)\@<!' . username . '"'
execute 'syntax match GitlabMention "' . username . '"'

let b:current_syntax = 'gitlab'

0 comments on commit 40bedf7

Please sign in to comment.