-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
racket-smart-open-bracket: Handle optional and typed argument forms #205
Comments
Thanks for the report. IIUC this is also relevant to |
The DrRacket feature upon which this is modeled doesn't seem to handle this case either. At least when I tried just now with Racket 6.3. That doesn't mean racket-mode couldn't do better in this regard; just an observation. |
That's interesting. I just tested in DrRacket 6.4 and it still doesn't function correctly. I'll probably just turn it off then, at least for typed Racket and plai-typed. Maybe something like general-close can provide a good enough solution for this, as opposed to using DrRacket's features. |
If you'd be happy with just the closing delimiter, racket-mode already does this for
|
Of course many people get matching closing delimiters from Having said that, I don't actually use the smart open bracket feature in racket-mode, myself. I added it on request. |
In plai-typed, function arguments in definitions look like this:
smart-open-bracket does not handle inserting brackets in this case, reverting to parens. Just wanted to make the author aware, not sure if there's a good solution to this.
The text was updated successfully, but these errors were encountered: