File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ indent the current line. This has to be fixed elsewhere."
649
649
(purescript-indentation-type)
650
650
(cond ((string= current-token " =" )
651
651
(purescript-indentation-with-starter
652
- (lambda () (purescript-indentation-separated #'purescript-indentation-type " |" " deriving " ))
652
+ (lambda () (purescript-indentation-separated #'purescript-indentation-type " |" nil ))
653
653
nil ))
654
654
((string= current-token " where" )
655
655
(purescript-indentation-with-starter
@@ -998,7 +998,13 @@ indent the current line. This has to be fixed elsewhere."
998
998
999
999
(defun purescript-indentation-peek-token ()
1000
1000
" Return token starting at point."
1001
- (cond ((looking-at " \\ (if\\ |then\\ |else\\ |let\\ |in\\ |ado\\ |mdo\\ |rec\\ |\\ (?:[[:word:]]+\\ .\\ )*do\\ |proc\\ |case\\ |of\\ |where\\ |module\\ |deriving\\ |data\\ |type\\ |newtype\\ |class\\ |instance\\ )\\ ([^[:alnum:]'_]\\ |$\\ )" )
1001
+ (cond ((looking-at
1002
+ (rx (group
1003
+ (or " if" " then" " else" " let" " in" " ado" " mdo" " rec"
1004
+ (seq (0+ (seq (1+ word) " ." )) " do" )
1005
+ " proc" " case" " of" " where" " module" " data" " type" " newtype"
1006
+ " class" " instance" ))
1007
+ (group (or (not (any alnum " '_" )) eol))))
1002
1008
(match-string-no-properties 1 ))
1003
1009
((looking-at " [][(){}[,;]" )
1004
1010
(match-string-no-properties 0 ))
You can’t perform that action at this time.
0 commit comments