diff options
| author | Paul Eggert | 2019-03-27 11:43:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-03-27 11:44:09 -0700 |
| commit | df167575d1ac2d056c8a2ef1fc83d768c09a3d28 (patch) | |
| tree | ee5a2de27dd5a1efae239c3d1109c55102cfe8d4 | |
| parent | 6dfd28c3201719cc284183a74dc1cc1344410905 (diff) | |
| download | emacs-df167575d1ac2d056c8a2ef1fc83d768c09a3d28.tar.gz emacs-df167575d1ac2d056c8a2ef1fc83d768c09a3d28.zip | |
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.el | 2 |
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', | |||
| 892 | (,(concat "@" css-ident-re) (0 font-lock-builtin-face)) | 892 | (,(concat "@" css-ident-re) (0 font-lock-builtin-face)) |
| 893 | ;; Selectors. | 893 | ;; Selectors. |
| 894 | ;; Allow plain ":root" as a selector. | 894 | ;; Allow plain ":root" as a selector. |
| 895 | ("^[ \t]*\\(:root\\)\\(?:[\n \t]*\\){" (1 'css-selector keep)) | 895 | ("^[ \t]*\\(:root\\)[\n \t]*{" (1 'css-selector keep)) |
| 896 | ;; FIXME: attribute selectors don't work well because they may contain | 896 | ;; FIXME: attribute selectors don't work well because they may contain |
| 897 | ;; strings which have already been highlighted as f-l-string-face and | 897 | ;; strings which have already been highlighted as f-l-string-face and |
| 898 | ;; thus prevent this highlighting from being applied (actually now that | 898 | ;; thus prevent this highlighting from being applied (actually now that |