]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow comma separated lists after Java "implements".
authorAlan Mackenzie <acm@muc.de>
Sun, 20 Oct 2013 14:27:22 +0000 (14:27 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 20 Oct 2013 14:27:22 +0000 (14:27 +0000)
* progmodes/cc-engine.el (c-backward-over-enum-header): parse
commas.
* progmodes/cc-fonts.el (c-basic-matchers-after): Remove comma
from a "disallowed" list in enum fontification.

lisp/ChangeLog
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el

index a2c38104bc8f955c148eb22605a145e039cbe5f8..ecb5ef0e70ed7086963bc89f6d7c1f86127545d7 100644 (file)
@@ -1,3 +1,12 @@
+2013-10-20  Alan Mackenzie  <acm@muc.de>
+
+       Allow comma separated lists after Java "implements".
+
+       * progmodes/cc-engine.el (c-backward-over-enum-header): parse
+       commas.
+       * progmodes/cc-fonts.el (c-basic-matchers-after): Remove comma
+       from a "disallowed" list in enum fontification.
+
 2013-10-20  Johan Bockgård  <bojohan@gnu.org>
 
        * startup.el (default-frame-background-mode): Remove unused
index 0d25e1355e75d1e0777102982c937df0ea1791c2..8cdb3379f664c938eacb3de37102e15ce2417a10 100644 (file)
@@ -8492,10 +8492,12 @@ comment at the start of cc-engine.el for more info."
         (or (not (looking-at "\\s)"))
             (c-go-up-list-backward))
         (cond
-         ((and (looking-at c-symbol-key) (c-on-identifier))
+         ((and (looking-at c-symbol-key) (c-on-identifier)
+               (not before-identifier))
           (setq before-identifier t))
          ((and before-identifier
-               (looking-at c-postfix-decl-spec-key))
+               (or (eq (char-after) ?,)
+                   (looking-at c-postfix-decl-spec-key)))
           (setq before-identifier nil)
           t)
          ((looking-at c-brace-list-key) nil)
index bcd4a5f28f87e69b15263b06b3d202d2ae495d40..ada83ac41b4d7da1575df42ab7aa32646105524a 100644 (file)
@@ -1884,7 +1884,7 @@ higher."
                "\\)\\>"
                ;; Disallow various common punctuation chars that can't come
                ;; before the '{' of the enum list, to avoid searching too far.
-               "[^\]\[{}();,/#=]*"
+               "[^\]\[{}();/#=]*"
                "{")
               '((c-font-lock-declarators limit t nil)
                 (save-match-data