mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/web/autoload/css: escape braces
Prevents auto-formatting of braces by tools like parinfer.
This commit is contained in:
@ -27,8 +27,8 @@
|
|||||||
(let ((inhibit-modification-hooks t))
|
(let ((inhibit-modification-hooks t))
|
||||||
(cl-destructuring-bind (&key beg end op cl &allow-other-keys)
|
(cl-destructuring-bind (&key beg end op cl &allow-other-keys)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(when (and (eq (char-after) ?{)
|
(when (and (eq (char-after) ?\{)
|
||||||
(not (eq (char-before) ?{)))
|
(not (eq (char-before) ?\{)))
|
||||||
(forward-char))
|
(forward-char))
|
||||||
(sp-get-sexp))
|
(sp-get-sexp))
|
||||||
(when (or (not (and beg end op cl))
|
(when (or (not (and beg end op cl))
|
||||||
|
Reference in New Issue
Block a user