From: Paul Eggert Date: Wed, 27 Mar 2019 18:43:18 +0000 (-0700) Subject: Tune css-mode regexp X-Git-Tag: emacs-27.0.90~3314 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=df167575d1ac2d056c8a2ef1fc83d768c09a3d28;p=emacs.git Tune css-mode regexp * lisp/textmodes/css-mode.el (css--font-lock-keywords): Omit unnecessary \(?: \) in regexp. Suggested by Mattias EngdegÄrd in: https://lists.gnu.org/r/emacs-devel/2019-03/msg01042.html --- diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index d3ca2d95589..11a77b5bb78 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -892,7 +892,7 @@ cannot be completed sensibly: `custom-ident', (,(concat "@" css-ident-re) (0 font-lock-builtin-face)) ;; Selectors. ;; Allow plain ":root" as a selector. - ("^[ \t]*\\(:root\\)\\(?:[\n \t]*\\){" (1 'css-selector keep)) + ("^[ \t]*\\(:root\\)[\n \t]*{" (1 'css-selector keep)) ;; FIXME: attribute selectors don't work well because they may contain ;; strings which have already been highlighted as f-l-string-face and ;; thus prevent this highlighting from being applied (actually now that