mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-11 09:20:51 +00:00
Prefix syntax for ,@ in elisp-mode (bug#44418)
* lisp/progmodes/elisp-mode.el (elisp-mode-syntax-propertize): Use prefix syntax for ,@ to avoid the @ becoming part of a symbol that follows. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-with-normal-env): Propertise inserted Lisp code to keep the test working.
This commit is contained in:
parent
be91192ecb
commit
6b9510d94f
@ -254,6 +254,9 @@ Comments in the form will be lost."
|
||||
;; Empty symbol.
|
||||
("##" (0 (unless (nth 8 (syntax-ppss))
|
||||
(string-to-syntax "_"))))
|
||||
;; Prevent the @ from becoming part of a following symbol.
|
||||
(",@" (0 (unless (nth 8 (syntax-ppss))
|
||||
(string-to-syntax "'"))))
|
||||
;; Unicode character names. (The longest name is 88 characters
|
||||
;; long.)
|
||||
("\\?\\\\N{[-A-Za-z0-9 ]\\{,100\\}}"
|
||||
|
@ -116,6 +116,7 @@ back to the top level.")
|
||||
(with-current-buffer (find-file edebug-tests-temp-file)
|
||||
(read-only-mode)
|
||||
(setq lexical-binding t)
|
||||
(syntax-ppss)
|
||||
(eval-buffer)
|
||||
,@body
|
||||
(when edebug-tests-failure-in-post-command
|
||||
|
Loading…
Reference in New Issue
Block a user