diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-11-07 16:21:36 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-11-07 16:21:36 +0100 |
commit | 75e8ee728fdda91a9eca7f3db24b639e8036f7e4 (patch) | |
tree | ef7381399099137d44aba924de40d1fb8834331d /lisp/emacs-lisp/lisp-mode.el | |
parent | 6c271ffaa808c602e177db4bd2297ff81112147e (diff) | |
parent | e8f5657bc7f6e0e45f70e4849736c6e87d44a1ac (diff) | |
download | emacs-75e8ee728fdda91a9eca7f3db24b639e8036f7e4.tar.gz emacs-75e8ee728fdda91a9eca7f3db24b639e8036f7e4.tar.bz2 emacs-75e8ee728fdda91a9eca7f3db24b639e8036f7e4.zip |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
-rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 352210f859d..daf49670894 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -178,13 +178,16 @@ (defun lisp--match-hidden-arg (limit) (let ((res nil)) + (forward-line 0) (while - (let ((ppss (parse-partial-sexp (line-beginning-position) + (let ((ppss (parse-partial-sexp (point) (line-end-position) -1))) (skip-syntax-forward " )") (if (or (>= (car ppss) 0) - (looking-at ";\\|$")) + (eolp) + (looking-at ";") + (nth 8 (syntax-ppss))) ;Within a string or comment. (progn (forward-line 1) (< (point) limit)) @@ -478,7 +481,8 @@ This will generate compile-time constants from BINDINGS." (3 'font-lock-regexp-grouping-construct prepend)) (lisp--match-hidden-arg (0 '(face font-lock-warning-face - help-echo "Hidden behind deeper element; move to another line?"))) + help-echo "Hidden behind deeper element; move to another line?") + prepend)) (lisp--match-confusable-symbol-character 0 '(face font-lock-warning-face help-echo "Confusable character")) @@ -522,7 +526,8 @@ This will generate compile-time constants from BINDINGS." (1 font-lock-keyword-face)) (lisp--match-hidden-arg (0 '(face font-lock-warning-face - help-echo "Hidden behind deeper element; move to another line?"))) + help-echo "Hidden behind deeper element; move to another line?") + prepend)) )) "Gaudy level highlighting for Lisp modes."))) |