Skip to content

Commit eacc61a

Browse files
authored
Merge pull request #11 from axelf4/multi-case-expr
Fix indent of case expr matching multiple values
2 parents cf11387 + 3dc7298 commit eacc61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

purescript-indentation.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ autofill-mode."
529529
("rec" . (lambda () (purescript-indentation-with-starter
530530
#'purescript-indentation-expression-layout nil)))
531531
("case" . (lambda () (purescript-indentation-phrase
532-
'(purescript-indentation-expression
532+
`(,(lambda () (purescript-indentation-separated #'purescript-indentation-expression "," nil))
533533
"of" purescript-indentation-case-layout))))
534534
("\\" . (lambda () (purescript-indentation-with-starter
535535
#'purescript-indentation-lambda-maybe-lambdacase nil)))
@@ -713,7 +713,7 @@ autofill-mode."
713713
(end (parse-error "Illegal token: %s" current-token))))))
714714

715715
(defun purescript-indentation-case ()
716-
(purescript-indentation-expression)
716+
(purescript-indentation-separated #'purescript-indentation-expression "," nil)
717717
(cond ((eq current-token 'end-tokens)
718718
(purescript-indentation-add-indentation current-indent))
719719
((string= current-token "|")

0 commit comments

Comments
 (0)