Closed arrow2nd closed 1 year ago
Nice job. Since this commit in nvim-treesitter repo, old TS*
highlight groups don't work anymore. Any chance merging this into master? I'm using @arrow2nd and LGTM
Thank you for your contribution!
Is it okay to delete old declarations? I'm worried about the impact on people using the old environment.
Indeed, it seems like a bad idea to delete the old declaration.
If so, should I modify it as follows?
call extend(rules, pgmnt#hi#group(
- \ ['@function', '@function.builtin', '@function.macro'], {
+ \ ['TSFunction', 'TSFunctionBuiltin', 'TSFunctionMacro', '@function', '@function.builtin', '@function.macro'], {
\ 'ctermfg': c.pale,
\ 'guifg': g.pale,
\ }))
call add(links, pgmnt#hi#link('@attribute', 'Special'))
+ call add(links, pgmnt#hi#link('TSAttribute', '@attribute'))
The removal of old declarations in treesitter has been undone.
Also, I noticed that the highlighting of comment tags (such as NOTE:
) was broken, so I fixed it.
Merged, thanks!
Some error occurred after merging this PR: #108
It seems that Vim doesn't support the name format like @foobar
... do you know anything about this?
It seems to be a Neovim-only specification that "@" can be used in group names.
https://neovim.io/doc/user/syntax.html
The name for a highlight or syntax group must consist of ASCII letters, digits, underscores, periods and @ characters. As a regexp it is [a-zA-Z0-9_.@]*.
I am not very familiar with Vim/Neovim yet, so I overlooked it. Sorry.
Thank you for investigating. Provisionally I've reverted this change. #109
Thanks for the great color theme!
Fixed broken highlighting in some file types due to the discontinuation of the
TS*
highlight group in the latest treesitter.This is my first time editing a color theme, so I would appreciate it if you could let me know if there are any flaws.
Before
After