From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#33983: 26.1; c++-mode syntax highlighting after some symbols Date: Tue, 02 Feb 2021 15:59:47 +0100 Message-ID: <87czxildlo.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21988"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 33983@debbugs.gnu.org To: koopafou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 02 16:26:36 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6xZc-0005bt-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 16:26:36 +0100 Original-Received: from localhost ([::1]:35572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6xZb-00080p-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 10:26:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6x9v-0007QM-20 for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 10:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6x9u-0000cP-Mm; Tue, 02 Feb 2021 10:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6x9u-0003BG-LE; Tue, 02 Feb 2021 10:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 02 Feb 2021 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33983 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: confirmed Original-Received: via spool by 33983-submit@debbugs.gnu.org id=B33983.161227799812185 (code B ref 33983); Tue, 02 Feb 2021 15:00:02 +0000 Original-Received: (at 33983) by debbugs.gnu.org; 2 Feb 2021 14:59:58 +0000 Original-Received: from localhost ([127.0.0.1]:35884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6x9q-0003AT-B9 for submit@debbugs.gnu.org; Tue, 02 Feb 2021 09:59:58 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:33996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6x9p-0003AE-7n for 33983@debbugs.gnu.org; Tue, 02 Feb 2021 09:59:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XhhBQzSf3ntFa9NlkSj5Qws5X+43ZrjwG3IGW1CI5nY=; b=cbabilza5DrrtyVomSSpC6wxEf FjFYFfHb4o4zrUSzSfOT8mv1kt5PePSQ13sgw6Ipj1EzfIUjJBJpXL743mHfex6GzYlFCt+ADNG78 nc0SooJkQPLJyRI6n7uCFb+ztgZC6iEj9d747cAtL1Pl2xuwYYa5b+hYGCPoiLLeIdio=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6x9g-0005Q9-BJ; Tue, 02 Feb 2021 15:59:50 +0100 X-Now-Playing: Sleater-Kinney's _The Center Won't Hold_: "Love" In-Reply-To: (koopafou@hotmail.fr's message of "Sat, 5 Jan 2019 01:22:56 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199142 Archived-At: koopafou writes: > When I type symbols that start with the same characters as an operator=20 > alias > followed by an array subscript, the index is colored like a namespace if > it's a symbol as well. > Examples : > > void a () { > =C2=A0 foo[bar]; // ok, foo doesn't start like an operator alias > =C2=A0 aor[bar]; // ok > =C2=A0 ora[1]; // starts with "or", but 1 is a number literal > =C2=A0 ora[bar][quux]; // bar is colored the same as std below, quux is = fine > =C2=A0 std::sort; > } > > int thing[bar]; // not colored > int nothing[bar]; // colored > > struct A { > =C2=A0 int nanana[bar]; // not colored > =C2=A0 int andwhatever[bar]; // colored > }; I could reproduce this problem with Emacs 26.1, but not with Emacs 27.1, so I guess this has been fixed by now, and I'm closing this bug report. If there's more to be done here, please respond to the debbugs address and we'll reopen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no