From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arash Newsgroups: gmane.emacs.bugs Subject: bug#24246: 25.0.95; (c++-mode) custom/extra types not getting highlighted (as a type) after a wrapper::type argument. Date: Thu, 08 Sep 2016 19:48:12 +0430 Message-ID: <86eg4us9mz.fsf@gmail.com> References: <86inv0ph8m.fsf@gmail.com> <20160817182121.GB5258@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473358717 15745 195.159.176.226 (8 Sep 2016 18:18:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2016 18:18:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24246@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 08 20:18:33 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi3ty-0002I6-D0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Sep 2016 20:18:18 +0200 Original-Received: from localhost ([::1]:50286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi3tw-0001na-9V for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Sep 2016 14:18:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi16Y-0000z5-VO for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 11:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi16U-0006jX-Ho for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 11:19:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi16U-0006jT-EO; Thu, 08 Sep 2016 11:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bi16U-0005MY-A3; Thu, 08 Sep 2016 11:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Thu, 08 Sep 2016 15:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24246 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 24246-submit@debbugs.gnu.org id=B24246.147334790420563 (code B ref 24246); Thu, 08 Sep 2016 15:19:02 +0000 Original-Received: (at 24246) by debbugs.gnu.org; 8 Sep 2016 15:18:24 +0000 Original-Received: from localhost ([127.0.0.1]:53765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi15r-0005Lb-R6 for submit@debbugs.gnu.org; Thu, 08 Sep 2016 11:18:24 -0400 Original-Received: from mail-wm0-f51.google.com ([74.125.82.51]:37583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi15q-0005LI-8b for 24246@debbugs.gnu.org; Thu, 08 Sep 2016 11:18:22 -0400 Original-Received: by mail-wm0-f51.google.com with SMTP id w12so95600691wmf.0 for <24246@debbugs.gnu.org>; Thu, 08 Sep 2016 08:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=YdtFJhcX+BMcBKmZBD1fDmSeWsUUDvNwtoymryWFSYk=; b=l5XyB4KX+pwes1IbmDPRttnxAkwdt06a50fpCp/fdhLOo2SFRC/hp/+wsTRmxdVE+i lVIGwC9xY58K0Rx8CXMbLbCdrskwqvpu/JyjWTdXUbhvK5rxWhfSiTC7E68n+urpEqzI HxyspgxCioCvESRcRZagtbiZH5J+vMRoLYuciY+PpE8n6PG8XENGF2Fla4zDQuYLceKu uFYLUb2TuYHV3Tsvf1gxrVW8i1vrWyEVGpz7JmkThj/LtZVdCyoNSuUx4NPb+m07kUtG 8eSOvq6FQR9AxKpZ9BweCGSM585ogwxI2oULC2WIov7ep+GHA6kxY4AIRSXJMaVvARfj xOAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=YdtFJhcX+BMcBKmZBD1fDmSeWsUUDvNwtoymryWFSYk=; b=EklsCvXl9hnJrLFzF/xRgY1NaVhMOnndhAuPkKbVruhVlpvZEACZQS3pQAITeHqYK2 4z/wT4UqCyvLlg3vcgnSXfYe0aV3Qxn89P2OO5F3+3lT2aukCo9nGgClwB11tHtT7+rH Mm1QXHhJ2kAKNomKRyDsKuF3nJKkVQhx7mI8VML0isXq4Px8NV7Ow2K4gHELz1lSk7BM 2taR6blxmhYbGFE0bkLWDfeYgIacFFeOzmkCsCp6kdGbSxkRbC374HfVUc7M0YQ3Hjf+ EpVXseOlXeVixXHVuFFCvflAC/FVBSpsZG6emeGmrxDu5wYWuy2c/OpdPrge7T9Bevg3 o0UQ== X-Gm-Message-State: AE9vXwNC2XrZN08OSzUIgBp13+UG5xhj5V0GpQaS6AwXDFwBcivVm2ORZ31gwRBwRiDTqA== X-Received: by 10.194.41.35 with SMTP id c3mr188588wjl.90.1473347896156; Thu, 08 Sep 2016 08:18:16 -0700 (PDT) Original-Received: from lo ([37.254.181.221]) by smtp.gmail.com with ESMTPSA id o2sm44732724wjo.3.2016.09.08.08.18.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 08:18:14 -0700 (PDT) Original-Received: by lo (Postfix, from userid 1001) id B08231433C1; Thu, 8 Sep 2016 19:48:12 +0430 (IRDT) In-Reply-To: <20160817182121.GB5258@acm.fritz.box> (Alan Mackenzie's message of "Wed, 17 Aug 2016 18:21:21 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123089 Archived-At: Alan Mackenzie wrote: > Hello again, Arash. > > On Wed, Aug 17, 2016 at 01:24:17AM +0430, Arash wrote: >> $ emacs -Q ab.cc > >> typedef int int32; > >> namespace wrapper { >> enum type { a, b, c }; >> } > >> // int32 doesn't get highlighted as a type. >> void test(wrapper::type A, int32 B); > > >> typedef wrapper::type wtype; > >> // here it works, so double colon is the problem? >> void test(wtype A, int32 B); > > Thanks indeed for this bug report, and thanks even more for cutting it > down to a nice, crisp, manageable file. > > The fontification code was not handling "::" in declarations correctly. > I think I have corrected this, and I have committed it to our master > branch at savannah. > > I see you're on the emacs-25 branch. Could you please patch your Emacs > with the following patch (the file is in directory .../lisp/progmodes), > rebuild CC Mode (a single $ emacs -Q -batch -f batch-byte-compile > .../lisp/progmodes/cc-engine.el should suffice), reload CC Mode into > your Emacs (or restart Emacs), then try out the new system on your real > code. > > Then please let me know whether the problem has been truly fixed, and > if not, what is still wrong. If everything is OK, I will close the bug. Hi Alan. This is a bit late, sry. // Here, first double colon causes the same problem. void test(::base::string S, int32 test) { } // and here, even "string" doesn't get highlighted. void test(::base::string &S) { }