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

How to specify treesitter highlight groups? #108

Closed
antistic opened this issue Oct 16, 2022 · 2 comments
Closed

How to specify treesitter highlight groups? #108

antistic opened this issue Oct 16, 2022 · 2 comments

Comments

@antistic
Copy link

:h treesitter-highlight-groups describes highlight groups such as @comment @comment.lua.

Lua doesn't allow symbols like @ and . in names, so you can't do:

local lush = require('lush')
return lush(function()
	return {
		@comment { },
		@comment.lua { },
	}
end)

For @comment the workaround is using the default link TSComment or Comment instead, but I can't work out if there's a similar workaround for language specific groups.

@rktjmp
Copy link
Owner

rktjmp commented Oct 16, 2022

Dupe #107

@rktjmp rktjmp closed this as completed Oct 16, 2022
@rktjmp
Copy link
Owner

rktjmp commented Oct 16, 2022

See #109 for fix.

This issue was closed.
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

No branches or pull requests

2 participants