Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(syntax): incorrect highlight for Delimiter #331

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

tmillr
Copy link
Member

@tmillr tmillr commented Jun 22, 2024

Neovim 0.10 changes or removes some of the default links for builtin hl groups (e.g. "base" groups). As such, Delimiter (and its dependents) no longer link to Special. We rely on the default links for some of these builtin hl groups.

In group/syntax.lua, restore these default links by setting/recreating them explicitly instead of relying on the defaults.

This commit addresses the groups in group/syntax.lua, but there may be other files or groups that need to be similarly addressed.

Fixes #329

Neovim 0.10 changes or removes some of the default links for builtin hl
groups (e.g. "base" groups). As such, `Delimiter` (and its dependents)
no longer link to `Special`. We rely on the default links for some of
these builtin hl groups.

In `group/syntax.lua`, restore these default links by setting/recreating
them explicitly instead of relying on the defaults.

This commit addresses the groups in `group/syntax.lua`, but there may be
other files or groups that need to be similarly addressed.

Fixes projekt0n#329
@ful1e5 ful1e5 merged commit 4f44a5c into projekt0n:main Jun 25, 2024
25 checks passed
@tmillr tmillr deleted the fix-329 branch June 25, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

punctuation.delimiter treesitter group nearly invisible
2 participants