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

Update Julia grammar and queries #12535

Open
jakobjpeters opened this issue Jan 14, 2025 · 0 comments
Open

Update Julia grammar and queries #12535

jakobjpeters opened this issue Jan 14, 2025 · 0 comments
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements

Comments

@jakobjpeters
Copy link

The current Julia grammar is from a non-tagged commit made over 2 years ago. Since then, their list of known failures has reduced from 159 files to 14. Syntax highlighting breaks in most of my Julia files, so it should be updated to the recent v0.23.1 release. Fixing this would also greatly improve my ability to recommend helix to Julia users.

I'm attempting to learn about tree-sitter and queries to solve this, but that's work in-progress. I think it would also be better to replace the current highlights.scm with the one in tree-sitter-julia to reduce maintenance burden and improve consistency. I was able to update my local languages.toml and highlights.scm files and rebuild the grammar, but it broke most of the existing syntax highlighting.

Another issue is that tree-sitter-julia doesn't have folds.scm, indents.scm, injections.scm, or textobjects.scm, but they recently created locals.scm. Fortunately, these files are pretty small and can be contributed to tree-sitter-julia (if they belong there, I'm still learning) and updated here if needed.

@the-mikedavis the-mikedavis added C-enhancement Category: Improvements A-language-support Area: Support for programming/text languages labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants