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

Have tree-sitter-hl-mode set font-lock-defaults to dummy value #232

Open
lambdadog opened this issue Jul 6, 2022 · 0 comments
Open

Have tree-sitter-hl-mode set font-lock-defaults to dummy value #232

lambdadog opened this issue Jul 6, 2022 · 0 comments

Comments

@lambdadog
Copy link

lambdadog commented Jul 6, 2022

This isn't an issue with existing modes, since they typically already include font-lock highlighting, but while writing my own mode backed by tree-sitter, I found that it was necessary to set font-lock-defaults to a dummy value (I eventually landed on '(('t))) for tree-sitter-hl-mode to perform highlighting.

Ideally, if font-lock-defaults was unset, tree-sitter-hl-mode could just set this value when enabled.

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

1 participant