@@ -132,12 +132,6 @@ set and deleted as if they were real tabs."
132
132
'haskell-indentation-mode
133
133
" 2015-05-25" )
134
134
135
- (defun haskell-indentation-parse-error (&rest args )
136
- " Create error message from ARGS, log it and throw."
137
- (let ((msg (apply 'format args)))
138
- (message " %s " msg)
139
- (throw 'parse-error msg)))
140
-
141
135
(defvar haskell-literate ) ; defined in haskell-mode.el
142
136
143
137
(defun haskell-indentation-bird-p ()
@@ -456,10 +450,7 @@ indentation points to the right, we switch going to the left."
456
450
(haskell-indentation-first-indentation)
457
451
(setq current-token (haskell-indentation-peek-token))
458
452
(catch 'parse-end
459
- (haskell-indentation-toplevel)
460
- (unless (eq current-token 'end-tokens )
461
- (haskell-indentation-parse-error
462
- " Illegal token: %s" current-token)))
453
+ (haskell-indentation-toplevel))
463
454
possible-indentations))))
464
455
465
456
(defun haskell-indentation-first-indentation ()
@@ -765,9 +756,7 @@ Skip the keyword or parenthesis." ; FIXME: better description needed
765
756
(when end
766
757
(throw 'parse-end nil )))
767
758
((equal current-token end)
768
- (haskell-indentation-read-next-token)) ; continue
769
- (end (haskell-indentation-parse-error
770
- " Illegal token: %s" current-token))))))
759
+ (haskell-indentation-read-next-token))))))
771
760
772
761
(defun haskell-indentation-case-alternative ()
773
762
" " ; FIXME
@@ -1032,8 +1021,7 @@ layout starts."
1032
1021
left-indent)))))
1033
1022
(throw 'parse-end nil ))
1034
1023
(haskell-indentation-phrase-rest (cddr phrase))))
1035
- ((string= (cadr phrase) " in" )) ; fallthrough
1036
- (t (haskell-indentation-parse-error " Expecting %s" (cadr phrase))))))
1024
+ ((string= (cadr phrase) " in" )))))
1037
1025
1038
1026
(defun haskell-indentation-add-indentation (indent )
1039
1027
" " ; FIXME
0 commit comments