fix(emacs/lean-server): fix ERROR regex pattern

This commit is contained in:
Soonho Kong 2014-08-26 16:02:40 -07:00
parent 682b13a906
commit 83f05e104a

View file

@ -34,7 +34,7 @@
(EVAL ,(rx line-start "-- BEGINEVAL" line-end)
,(rx line-start (group "-- ENDEVAL") line-end))
(ERROR ,(rx line-start "-- " (0+ not-newline) line-end)
,(rx line-start (group "-- ERROR") line-end)))
,(rx line-start (group "-- ERROR" (0+ not-newline)) line-end)))
"Regular expression pattern for lean-server message syntax")
(defun lean-server-split-buffer (buf-str beg-regex end-regex)
@ -55,7 +55,7 @@
(cl-loop for (type beg-regex end-regex) in lean-server-syntax-pattern
do (setq partition-result (lean-server-split-buffer buf-str beg-regex end-regex))
if partition-result
return `(,type ,partition-result))))
return `(,type ,partition-result))))
(defun lean-server-process-received-message (buf str)
"Process received message from lean-server"