Fix MatchupWhereAmI pattern for nvim hl groups

fixes #281
This commit is contained in:
Andy K. Massimino
2023-04-10 19:50:05 -04:00
parent 156367e4cb
commit 03ebc3b7db

View File

@@ -130,7 +130,7 @@ endfunction
function! s:EchoHLString(str)
let l:str = '%<' . substitute(a:str, '%{[^}]\+}', '', 'g')
let l:pat = '\%(%\(<\)\|%#\(\w*\)#\)'
let l:pat = '\%(%\(<\)\|%#\([0-9A-Za-z_@.]*\)#\)'
let l:components = split(l:str, l:pat.'\&')
call map(l:components, 'matchlist(v:val, "^".l:pat."\\(.*\\)")')