lang/web/autoload/css: escape braces

Prevents auto-formatting of braces by tools like parinfer.
This commit is contained in:
Henrik Lissner 2018-08-31 02:40:15 +02:00
parent 2c5ccaa864
commit 2df2622329
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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))