1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00

* textmodes/css-mode.el (css-font-lock-keywords): Fix grouped selectors.

Fixes: debbugs:5732
This commit is contained in:
Deniz Dogan 2011-06-28 13:23:01 +02:00
parent 3da13bb976
commit ad85fe1f1b
2 changed files with 6 additions and 1 deletions

View file

@ -240,7 +240,7 @@
;; thus prevent this highlighting from being applied (actually now that
;; I use `append' this should work better). But really the part of hte
;; selector between [...] should simply not be highlighted.
(,(concat "^\\([ \t]*[^@:{\n][^:{\n]+\\(?::" (regexp-opt css-pseudo-ids t)
(,(concat "^\\([ \t]*[^@:{}\n][^:{}]+\\(?::" (regexp-opt css-pseudo-ids t)
"\\(?:([^)]+)\\)?[^:{\n]*\\)*\\)\\(?:\n[ \t]*\\)*{")
(1 'css-selector append))
;; In the above rule, we allow the open-brace to be on some subsequent