From: Lars Ingebrigtsen Date: Tue, 7 Jun 2022 18:28:05 +0000 (+0200) Subject: Give ,@ a prefix syntax in elisp-mode X-Git-Tag: emacs-29.0.90~1910^2~165 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d003848b5e3ad2dfbe84cc62b99776fdc6734325;p=emacs.git Give ,@ a prefix syntax in elisp-mode * lisp/progmodes/elisp-mode.el (elisp-mode-syntax-propertize): Give ,@ a prefix syntax so that we can properly identify symbols that follow it, i.e., ,@foo (bug#44418). --- diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 77bf3f1ed18..210270bc679 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -245,6 +245,9 @@ Comments in the form will be lost." ;; Empty symbol. ("##" (0 (unless (nth 8 (syntax-ppss)) (string-to-syntax "_")))) + ;; Give ,@ a prefix syntax. + (",@" (0 (unless (ppss-comment-or-string-start (syntax-ppss)) + (string-to-syntax "'")))) ;; Unicode character names. (The longest name is 88 characters ;; long.) ("\\?\\\\N{[-A-Za-z0-9 ]\\{,100\\}}"