Fix highlight for usernames (#83)
Changes regular expression for Gitlab usernames.
This commit is contained in:
@@ -2,7 +2,7 @@ if filereadable($VIMRUNTIME . '/syntax/markdown.vim')
|
||||
source $VIMRUNTIME/syntax/markdown.vim
|
||||
endif
|
||||
|
||||
syntax match Username "@\w\+"
|
||||
syntax match Username "@\S*"
|
||||
syntax match Date "\v\d+\s+\w+\s+ago"
|
||||
syntax match ChevronDown ""
|
||||
syntax match ChevronRight ""
|
||||
|
||||
@@ -2,8 +2,8 @@ local Job = require("plenary.job")
|
||||
local M = {}
|
||||
|
||||
M.get_colors_for_group = function(group)
|
||||
local normal_fg = vim.fn.synIDattr(vim.fn.hlID(group), "fg")
|
||||
local normal_bg = vim.fn.synIDattr(vim.fn.hlID(group), "bg")
|
||||
local normal_fg = vim.fn.synIDattr(vim.fn.synIDtrans((vim.fn.hlID(group))), "fg")
|
||||
local normal_bg = vim.fn.synIDattr(vim.fn.synIDtrans((vim.fn.hlID(group))), "bg")
|
||||
return { fg = normal_fg, bg = normal_bg }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user