@@ -132,12 +132,6 @@ set and deleted as if they were real tabs."
132132               'haskell-indentation-mode 
133133               " 2015-05-25"  )
134134
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- 
141135(defvar  haskell-literate ) ;  defined in haskell-mode.el
142136
143137(defun  haskell-indentation-bird-p  ()
@@ -456,10 +450,7 @@ indentation points to the right, we switch going to the left."
456450          (haskell-indentation-first-indentation)
457451        (setq  current-token (haskell-indentation-peek-token))
458452        (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))
463454        possible-indentations))))
464455
465456(defun  haskell-indentation-first-indentation  ()
@@ -765,9 +756,7 @@ Skip the keyword or parenthesis." ; FIXME: better description needed
765756             (when  end
766757               (throw  'parse-end  nil )))
767758            ((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))))))
771760
772761(defun  haskell-indentation-case-alternative  ()
773762  " "   ;  FIXME
@@ -1032,8 +1021,7 @@ layout starts."
10321021                      left-indent)))))
10331022          (throw  'parse-end  nil ))
10341023        (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"  )))))
10371025
10381026(defun  haskell-indentation-add-indentation  (indent )
10391027  " "   ;  FIXME
0 commit comments