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 indent queries for scheme #8720

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

Triton171
Copy link
Contributor

Add indent queries for scheme following this guide. The only thing which isn't fully implemented is the section about Lisp keywords: The queries handle them in a very simple way that sometimes underestimates the indent and the regex that matches keywords is definitely not complete. Still, it should be good enough to provide a good editing experience. Since I don't have any experience with Scheme/Lisp, it wouldn't hurt if someone more knowledgeable double-checked this though.

Since Lisp & Racket use the same grammar, I also just inherited the queries from scheme for them. For Racket, I added a default indent width, since there is a workaround in the queries that requires this (this workaround is a short-term solution but a better solution requires extending the indentation system).

@the-mikedavis the-mikedavis added S-waiting-on-review Status: Awaiting review from a maintainer. A-indent Area: Indentation labels Nov 8, 2023
@pascalkuthe pascalkuthe merged commit cb0bc25 into helix-editor:master Nov 8, 2023
6 checks passed
danillos pushed a commit to danillos/helix that referenced this pull request Nov 21, 2023
dgkf pushed a commit to dgkf/helix that referenced this pull request Jan 30, 2024
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 2, 2024
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-indent Area: Indentation S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants