Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit cbc4c1c

Browse files
committed
Merge pull request #74 from gracjan/pr-handle-end-of-file
Handle end-of-file
2 parents 7ceb4e2 + 14684e3 commit cbc4c1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elisp/haskell-ide-engine.el

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
(delete-region (point-min) (point-max)))
6060
;; json-unknown-keyword when unrecognized keyword is parsed
6161
(json-unknown-keyword
62+
(when haskell-ide-engine-process-handle-invalid-input
63+
(funcall haskell-ide-engine-process-handle-invalid-input))
64+
(delete-region (point-min) (point-max)))
65+
(end-of-file
6266
(when haskell-ide-engine-process-handle-invalid-input
6367
(funcall haskell-ide-engine-process-handle-invalid-input))
6468
(delete-region (point-min) (point-max))))))

0 commit comments

Comments
 (0)