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))
|
||||
(cl-destructuring-bind (&key beg end op cl &allow-other-keys)
|
||||
(save-excursion
|
||||
(when (and (eq (char-after) ?{)
|
||||
(not (eq (char-before) ?{)))
|
||||
(when (and (eq (char-after) ?\{)
|
||||
(not (eq (char-before) ?\{)))
|
||||
(forward-char))
|
||||
(sp-get-sexp))
|
||||
(when (or (not (and beg end op cl))
|
||||
|
Reference in New Issue
Block a user