emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r104770: * textmodes/css-mode.el (css


From: Deniz Dogan
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104770: * textmodes/css-mode.el (css-font-lock-keywords): Fix grouped selectors.
Date: Tue, 28 Jun 2011 13:23:01 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104770
fixes bug(s): http://debbugs.gnu.org/5732
committer: Deniz Dogan <address@hidden>
branch nick: emacs-trunk
timestamp: Tue 2011-06-28 13:23:01 +0200
message:
  * textmodes/css-mode.el (css-font-lock-keywords): Fix grouped selectors.
modified:
  lisp/ChangeLog
  lisp/textmodes/css-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-06-27 21:47:39 +0000
+++ b/lisp/ChangeLog    2011-06-28 11:23:01 +0000
@@ -1,3 +1,8 @@
+2011-06-28  Deniz Dogan  <address@hidden>
+
+       * textmodes/css-mode.el (css-font-lock-keywords): Fix grouped
+       selectors (Bug#5732).
+
 2011-06-27  Jari Aalto  <address@hidden>
 
        * eshell/em-ls.el: Display `ls -l' dates in ISO format (Bug#8440).

=== modified file 'lisp/textmodes/css-mode.el'
--- a/lisp/textmodes/css-mode.el        2011-03-11 20:04:22 +0000
+++ b/lisp/textmodes/css-mode.el        2011-06-28 11:23:01 +0000
@@ -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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]