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

Add support for Djot #12264

Open
sudanchapagain opened this issue Dec 16, 2024 · 3 comments · May be fixed by #12562
Open

Add support for Djot #12264

sudanchapagain opened this issue Dec 16, 2024 · 3 comments · May be fixed by #12562
Labels
C-enhancement Category: Improvements

Comments

@sudanchapagain
Copy link

Could support for .djot & .dj be added? At the very least the syntax highlighting.

Djot site

@sudanchapagain sudanchapagain added the C-enhancement Category: Improvements label Dec 16, 2024
@TornaxO7
Copy link
Contributor

TornaxO7 commented Dec 16, 2024

You can meanwhile add the support manually in our config (see the entry grammar in the table).

@mmibbetson
Copy link

mmibbetson commented Jan 14, 2025

Per #3020 and this comment on #3019, the queries in the tree-sitter-djot repository won't work.

I've written/adapted the highlights and injections for tree-sitter-djot to fit the current helix precedence order and the appropriate highlighting scopes. I'm currently getting the appropriate portion of the language.toml ready.

It looks like there is going to be a significant change to the tree-sitter-djot grammar in the future, so I'll have to come back to this and adapt. But for now, I'm hoping to get a pull request ready for the current version by the end of the week.

@mmibbetson
Copy link

If you're curious about what the highlights are looking like in Helix, I've provided some screenshots in this comment on the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants