From d003848b5e3ad2dfbe84cc62b99776fdc6734325 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 7 Jun 2022 20:28:05 +0200 Subject: [PATCH] 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). --- lisp/progmodes/elisp-mode.el | 3 +++ 1 file changed, 3 insertions(+) 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\\}}" -- 2.39.2