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

Usage of rust grammar for ron files causes parsing inaccuracies #8578

Closed
Omnikar opened this issue Oct 20, 2023 · 0 comments · Fixed by #8624
Closed

Usage of rust grammar for ron files causes parsing inaccuracies #8578

Omnikar opened this issue Oct 20, 2023 · 0 comments · Fixed by #8624
Labels
A-language-support Area: Support for programming/text languages

Comments

@Omnikar
Copy link
Contributor

Omnikar commented Oct 20, 2023

Currently, Helix uses grammar = "rust" for ron files. ron syntax is slightly different from Rust's so this creates fundamental errors in parsing of ron files and messes up things like auto-indentation and syntax node selection. This has become a major annoyance for me when working with ron files.

Looks like https://github.com/zee-editor/tree-sitter-ron exists, so that would be worth considering.

@Omnikar Omnikar changed the title Usage of rust grammar for ron files messes up auto-indentation Usage of rust grammar for ron files causes parsing inaccuracies Oct 21, 2023
@the-mikedavis the-mikedavis added the A-language-support Area: Support for programming/text languages label Oct 21, 2023
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants