fix(emacs/lean-server): missing 'rx' at the beginning of regex

This commit is contained in:
Soonho Kong 2014-09-09 13:47:09 -07:00
parent 70dcc2e122
commit ba6dc59d5f

View file

@ -447,7 +447,7 @@ If it's not the same with file-name (default: buffer-file-name), send VISIT cmd.
(defun lean-server-get-info-record-at-pos (body)
(let* ((file-name (buffer-file-name))
(column (current-column)))
(when (and (looking-at (or white "," ")" "}" "]"))
(when (and (looking-at (rx (or white "," ")" "}" "]")))
(> column 1))
(setq column (1- column)))
(lean-info-record-parse body file-name column)))