From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: POC: customizable cc-mode keywords Date: Sat, 10 May 2014 16:13:50 -0700 Message-ID: <536EB2AE.9050307@dancol.org> References: <53632C6F.5070903@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="esLJuFAm1QcU1HAqsdGFSohUOV68hs6Ps" X-Trace: ger.gmane.org 1399763660 12868 80.91.229.3 (10 May 2014 23:14:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2014 23:14:20 +0000 (UTC) To: Emacs developers , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 11 01:14:12 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WjGT4-000242-H2 for ged-emacs-devel@m.gmane.org; Sun, 11 May 2014 01:14:10 +0200 Original-Received: from localhost ([::1]:59183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjGT3-0001Lm-Ve for ged-emacs-devel@m.gmane.org; Sat, 10 May 2014 19:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjGT0-0001Le-V7 for emacs-devel@gnu.org; Sat, 10 May 2014 19:14:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjGSu-0004Ye-Qp for emacs-devel@gnu.org; Sat, 10 May 2014 19:14:06 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:35046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjGSu-0004YK-GO for emacs-devel@gnu.org; Sat, 10 May 2014 19:14:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=YFAFfBBAbba714d+jez7q1HmH1LecSr0Mx14mLg1Dn0=; b=qyQbMqNAJbviNFdSlgaaYHDKpb1I+9ITuY+971SOWMQp/l7zguMrTD3NCdf6fAcKKYbbqC8+IRVhdJ+0WCdBnjHabAHiAOREawrktc0alyYYk6ckE0NI/T+fPUjVCZRFfMHHf2Tj00q9ufFFdUMWuR+CpPuHrkG+ZeRUa23yaS7zgf8FoL0z5BleTCD/pOxkXLHvQi8MG8+lmXbJHb7IAWQ6SFMJAr3i7MHUlrqx1KtpEDi3HrXvZ1UHsPVbRbGDVXjvDUW5vMLRP3KqvzQQCFQCSVArEIqIBKdvv6/mBk11gQ4+b3QM8J3iYQyhY0SmnL1SbeCcC9vaMZGjarBn/g==; Original-Received: from [2601:8:b240:2a1::2b1] by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1WjGSl-0000XL-AE; Sat, 10 May 2014 16:13:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <53632C6F.5070903@dancol.org> X-Enigmail-Version: 1.6 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171797 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --esLJuFAm1QcU1HAqsdGFSohUOV68hs6Ps Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/01/2014 10:26 PM, Daniel Colascione wrote: > cc-mode has trouble with parsing dialects of C that use the preprocesso= r > heavily. Consider this example from the Linux kernel: >=20 > static int perf_event_period(struct perf_event *event, u64 __user *ar= g) >=20 > __user is defined to some GCC static analysis nonsense, but since > cc-mode doesn't know that, we see __user fontified in > font-lock-variable-name-face and *arg untouched. This example is fairly= > benign (if ugly), but there are other cases where variations in > pre-processor C dialect confuse cc-mode in larger regions, leading to > odd fontification and indentation. >=20 > The patch below adds customizable options for additional C-family > language "keywords". Ping. CC Alan. --esLJuFAm1QcU1HAqsdGFSohUOV68hs6Ps 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 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTbrKuAAoJEMAaIROpHW7IoTsQAKYNtJWSYCTiligDwZ4ucbru K4QT/A4OWzyPbHW1gXG+2J3cuky9TrxUNHHzuvJP/stRu4hXVGWMY53MOoOHSukz JKUnyhjxDqGKvN9EqRa/IWTOsmvoiZ33uE3CsjgERZCJ6R9UFxzy68XRMfsaY4D7 nqyLA92CLXaU9y8LnnTvR/u91F+RgFonYYL2bed4mZqB5rBIadQ3tLN09jwokTcJ +2bmNWgoJAJeUgjAi87DNuif7wVn08Z/B8SLitNF3ZxCOfkcYlr2ULuNLubD4jZ+ trgJvlMh8CFMWSgofYtoGTYq47v3Thbah45jwxAA3ZNsuU+adeQ27DOLUyhkO7nx mLzsty1lrBijRhcyWM+fozSYrsKuJnkNxWOhcjKb1cb3MTDk4ujLg6GoaxtXfZ4s NfCeeKVIVh/ViMYThCcB7DJWRotfHtc4jPyrV2tpPa7+RfBKyuG3GEhvoD3MT23t zRi65FBYx4vFemiYRlLEdEUAvDLWi6QNOfadoESCWRwDwqR//sy4KLAKbYuXAeRc Lb/rDiZYbyRlHNIezhIdv7JZOIyOrv0GYb62oCJqPVggYWu41XIBom0IHd/VTj2T x3AqmD8JVAwIKyxP7NedNEJFlT9y3Xd7eX797JAVYPwZ2266gQxM/R1RAHDVTDse 4T1vFNXhhOj9fws5tlzH =Y2lL -----END PGP SIGNATURE----- --esLJuFAm1QcU1HAqsdGFSohUOV68hs6Ps--