这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions lisp-extra-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,16 @@ the end of the quoted expression."
"List of `cl-loop' named variable binding parameters.")


(defvar lisp-extra-font-lock--loop-keywords-regexp
(concat
"\\_<"
"\\("
(regexp-opt (append
lisp-extra-font-lock-loop-keywords-with-var
lisp-extra-font-lock-loop-keywords))
"\\)"
"\\_>"))

;; Match named loop keywords, and (optionally) any bound variables.
;;
;; Note, does not support "destructuring", i.e. binding several
Expand All @@ -589,14 +599,7 @@ the end of the quoted expression."
(forward-comment (buffer-size))
(and (< (point) limit)
(not (looking-at
(concat
"\\_<"
"\\("
(regexp-opt (append
lisp-extra-font-lock-loop-keywords-with-var
lisp-extra-font-lock-loop-keywords))
"\\)"
"\\_>")))))
lisp-extra-font-lock--loop-keywords-regexp))))
(condition-case nil
(forward-sexp)
(error (goto-char limit))))
Expand Down