summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-03-27 11:43:18 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-03-27 11:44:09 -0700
commitdf167575d1ac2d056c8a2ef1fc83d768c09a3d28 (patch)
treeee5a2de27dd5a1efae239c3d1109c55102cfe8d4
parent6dfd28c3201719cc284183a74dc1cc1344410905 (diff)
downloademacs-df167575d1ac2d056c8a2ef1fc83d768c09a3d28.tar.gz
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
-rw-r--r--lisp/textmodes/css-mode.el2
1 files changed, 1 insertions, 1 deletions
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