[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7405: cc-mode typo between cc-engine and cc-fonts
From: |
Daniel Colascione |
Subject: |
bug#7405: cc-mode typo between cc-engine and cc-fonts |
Date: |
Sun, 14 Nov 2010 20:11:27 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
Latest trunk.
In cc-fonts.el,
;; Skip over type decl prefix operators, one for each iteration
;; of the while. These are, e.g. "*" in "int *foo" or "(" and
;; "*" in "int (*foo) (void)" (Note similar code in
;; `c-forward-decl-or-cast-1'.)
(while (and (looking-at c-type-decl-prefix-key)
(if (and (c-major-mode-is 'c++-mode)
(match-beginning 3))
;; If the third submatch matches in C++ then
^^^^^^^^^^^^^^
;; we're looking at an identifier that's a
;; prefix only if it specifies a member pointer.
In cc-engine.el,
;; Skip over type decl prefix operators. (Note similar code in
;; `c-font-lock-declarators'.)
(while (and (looking-at c-type-decl-prefix-key)
(if (and (c-major-mode-is 'c++-mode)
(match-beginning 2))
;; If the second submatch matches in C++ then
^^^^^^^^^^^^^^^^
;; we're looking at an identifier that's a
;; prefix only if it specifies a member pointer.
(when (setq got-identifier (c-forward-name))
So which is it?
signature.asc
Description: OpenPGP digital signature
- bug#7405: cc-mode typo between cc-engine and cc-fonts,
Daniel Colascione <=