-
Notifications
You must be signed in to change notification settings - Fork 10
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
matching with record syntax in let
and case
expressions breaks indentation
#12
Comments
I investigated this today and figured this seems to be leftover from diff --git a/purescript-indentation.el b/purescript-indentation.el
index 1040964..257c19e 100644
--- a/purescript-indentation.el
+++ b/purescript-indentation.el
@@ -765,9 +765,7 @@ autofill-mode."
(throw 'parse-end nil)))))
(defun purescript-indentation-layout (parser)
- (if (string= current-token "{")
- (purescript-indentation-list parser "}" ";" nil)
- (purescript-indentation-implicit-layout-list parser)))
+ (purescript-indentation-implicit-layout-list parser))
(defun purescript-indentation-expression-token (token)
(member token '("if" "let" "do" "case" "\\" "(" "[" "{" "::" |
The patch above fixes the issue for me. @kritzcreek , any chance of this getting landed in the repo? |
Sure I can merge, I just can't test it on my own at the moment, I'll rely on your judgement then ;) |
Actually looks like the PR I merged fixes a separate syntax issue with indentation. If you can open a PR for the patch above I'm happy to merge that as well. |
Though not fixed, but should be much better with this PR #21 |
In
let
andcase
expressionsIn function argument it works fine
test { x } = x -- this works
The text was updated successfully, but these errors were encountered: