1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00

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.
This commit is contained in:
Alan Mackenzie 2013-10-20 14:27:22 +00:00
parent 4a5da22b39
commit 87756ca9f4
3 changed files with 14 additions and 3 deletions

View 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

View 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)

View 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