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

DrRacket indentation #32

Open
jackfirth opened this issue Aug 21, 2015 · 4 comments
Open

DrRacket indentation #32

jackfirth opened this issue Aug 21, 2015 · 4 comments

Comments

@jackfirth
Copy link

Sweet expressions mess with DrRacket's default indentation. Is there a way to tell DrRacket how to indent sweet expressions?

@takikawa
Copy link
Owner

It's possible, but it would involve writing a custom indenter.

Basically the sweet-exp language would have to export a value for this get-info key:

http://plt.eecs.northwestern.edu/snapshots/current/doc/tools/adding-languages.html?q=indentation#%28idx._%28gentag._17._%28lib._scribblings%2Ftools%2Ftools..scrbl%29%29%29

@AlexKnauth
Copy link
Collaborator

I managed to make an indenter that does nothing, so that it never un-indents a properly indented form:
#33

@AlexKnauth
Copy link
Collaborator

@jackfirth @takikawa
I modified the indenter in #33 to use normal s-expression indenting rules within an s-expression, and otherwise not change anything.

@AlexKnauth
Copy link
Collaborator

@jackfirth When you update, is the indentation better now?

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

3 participants