From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#7580: [PATCH] cc-mode bitfield fontification bug Date: Tue, 07 Dec 2010 04:34:54 -0800 Message-ID: <4CFE29EE.4000200@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig70D433A2BFCC0793AF99C3A6" X-Trace: dough.gmane.org 1291725939 8442 80.91.229.12 (7 Dec 2010 12:45:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Dec 2010 12:45:39 +0000 (UTC) To: 7580@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 07 13:45:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPwvF-0005X5-4v for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Dec 2010 13:45:33 +0100 Original-Received: from localhost ([127.0.0.1]:46709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPwvE-0003TO-Oc for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Dec 2010 07:45:32 -0500 Original-Received: from [140.186.70.92] (port=50080 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPwv9-0003SS-7O for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2010 07:45:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPwv7-0005Qn-Vj for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2010 07:45:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPwv7-0005Qh-SF for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2010 07:45:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PPwgG-0002ah-Bh; Tue, 07 Dec 2010 07:30:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Dec 2010 12:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12917249999888 (code B ref -1); Tue, 07 Dec 2010 12:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Dec 2010 12:29:59 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PPwgA-0002ZR-MF for submit@debbugs.gnu.org; Tue, 07 Dec 2010 07:29:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PPwg8-0002Z9-N0 for submit@debbugs.gnu.org; Tue, 07 Dec 2010 07:29:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPwlj-0002ev-RI for submit@debbugs.gnu.org; Tue, 07 Dec 2010 07:35:51 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:37513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPwlj-0002ep-Op for submit@debbugs.gnu.org; Tue, 07 Dec 2010 07:35:43 -0500 Original-Received: from [140.186.70.92] (port=47063 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPwlT-0001dG-9P for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2010 07:35:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPwl2-0002L2-Vk for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2010 07:35:25 -0500 Original-Received: from mail-px0-f169.google.com ([209.85.212.169]:64591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPwl2-0002Jp-O3 for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2010 07:35:00 -0500 Original-Received: by pxi12 with SMTP id 12so4907978pxi.0 for ; Tue, 07 Dec 2010 04:34:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=bptTkLTvYHZt4XUvJl4kbkEYLSz7JuEBqwHnKreEvR4=; b=IiWezxGomfqYT5vslO4Dp5wQ5SVybhn4uE9VgdrLihh8fkG5YTtTG1e0vcui+7hhJ8 Yv39R+6Tat7+3ykyVObC/PHpKfdgFGbYoNDL/w0KArbMfkGoSF6wgQfo/BE1+uQs3EpQ 6iMhSPDSRmutC4HNH2NZCgHrEXAh6qQ01glPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=Hd1M4BLn9aSvxcs6tWFRrPAP4TGd+h+yuH33VIV45wWpNTIy/zeaT1C9o2Gq2jVu2Y pgDJVUVlz6CyJEz4IMDTJZM9N1+hnlEmHd1ErbR9sq9iLRV1OoixTcjwsfJ0KX0Vmosw 5Fha2tyChUQ+7l/+cH3KJp55a0xTdIXiCbq9w= Original-Received: by 10.142.242.19 with SMTP id p19mr693776wfh.176.1291725299526; Tue, 07 Dec 2010 04:34:59 -0800 (PST) Original-Received: from edith.local (c-67-183-23-114.hsd1.wa.comcast.net [67.183.23.114]) by mx.google.com with ESMTPS id e14sm8878235wfg.8.2010.12.07.04.34.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 07 Dec 2010 04:34:58 -0800 (PST) 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 X-Enigmail-Version: 1.1.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 07 Dec 2010 07:30:04 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42261 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig70D433A2BFCC0793AF99C3A6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable struct test { /* Both should be fontified as bitfields; currently, only the former is */ int bf1:5; unsigned bf2:5; }; @@ -5575,7 +5656,9 @@ ;; a valid label. Otherwise the last one probably is the ;; declared identifier and we should back up to the previous ;; type, providing it isn't a cast. - (if (eq (char-after) ?:) + (if (and (eq (char-after) ?:) + (not (and (eq backup-at-type 'prefix) + (eq at-type 'maybe)))) ;; If we've found a specifier keyword then it's a ;; declaration regardless. (throw 'at-decl-or-cast (eq at-decl-or-cast t)) --------------enig70D433A2BFCC0793AF99C3A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iEYEARECAAYFAkz+KfAACgkQ17c2LVA10VugRgCdG4xSsnM1CgWkshj7iZcF3z3Z /cYAoMV2qltQMfcImjP3s2CwazJ3EW0m =Jo0K -----END PGP SIGNATURE----- --------------enig70D433A2BFCC0793AF99C3A6--