GNU bug report logs - #61876
28.2; Invalid highlighting of expression comments in Scheme

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: "Jakub T. Jankiewicz" <jcubic@HIDDEN>; dated Tue, 28 Feb 2023 20:07:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Feb 2023 20:06:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 28 15:06:12 2023
Received: from localhost ([127.0.0.1]:52068 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pX6Eg-0002Yu-N0
	for submit <at> debbugs.gnu.org; Tue, 28 Feb 2023 15:06:12 -0500
Received: from lists.gnu.org ([209.51.188.17]:52984)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <SRS0=Tw3+=6Y=jcubic.pl=jcubic@HIDDEN>)
 id 1pX5h3-0001YN-Ho
 for submit <at> debbugs.gnu.org; Tue, 28 Feb 2023 14:31:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1)
 (envelope-from <SRS0=Tw3+=6Y=jcubic.pl=jcubic@HIDDEN>)
 id 1pX5gq-0006me-G2
 for bug-gnu-emacs@HIDDEN; Tue, 28 Feb 2023 14:31:13 -0500
Received: from u1.atthost.pl ([2a0c:5840:0:15::1])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1)
 (envelope-from <SRS0=Tw3+=6Y=jcubic.pl=jcubic@HIDDEN>)
 id 1pX5gk-0007zo-Pw
 for bug-gnu-emacs@HIDDEN; Tue, 28 Feb 2023 14:31:06 -0500
Received: from localhost (unknown [127.0.0.1])
 by u1.atthost.pl (Postfix) with ESMTP id A81D11236BC
 for <bug-gnu-emacs@HIDDEN>; Tue, 28 Feb 2023 19:25:44 +0000 (UTC)
X-Virus-Scanned: amavisd-new at atthost.pl
Received: from u1.atthost.pl ([185.255.40.21])
 by localhost (atthost.pl [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 61RL7-bF36_E for <bug-gnu-emacs@HIDDEN>;
 Tue, 28 Feb 2023 20:25:43 +0100 (CET)
Received: from jcubic (unknown [178.218.193.193])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jcubic@HIDDEN)
 by u1.atthost.pl (Postfix) with ESMTPSA id 22B91123184
 for <bug-gnu-emacs@HIDDEN>; Tue, 28 Feb 2023 20:25:43 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.11.0 u1.atthost.pl 22B91123184
Date: Tue, 28 Feb 2023 20:25:41 +0100
From: "Jakub T. Jankiewicz" <jcubic@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.2; Invalid highlighting of expression comments in Scheme
Message-ID: <20230228202541.21923b5c@jcubic>
X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-redhat-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2a0c:5840:0:15::1;
 envelope-from=SRS0=Tw3+=6Y=jcubic.pl=jcubic@HIDDEN; helo=u1.atthost.pl
X-Spam_score_int: 17
X-Spam_score: 1.7
X-Spam_bar: +
X-Spam_report: (1.7 / 5.0 requ) BAYES_00=-1.9,
 HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.4 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  This is valid expression in Scheme: ``` (list #; #; 42 10 10)
 ``` that evaluates to `(10)` double expression comment eat two S-Expressions
 in a row. 
 Content analysis details:   (2.4 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
 [178.218.193.193 listed in zen.spamhaus.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;
 id=srs0%3Dtw3%2B%3D6y%3Djcubic.pl%3Djcubic%40attmail.pl; ip=209.51.188.17;
 r=debbugs.gnu.org]
 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
 mail domains are different
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.51.188.17 listed in wl.mailspike.net]
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 28 Feb 2023 15:06:05 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

This is valid expression in Scheme:

```
(list #;#;42 10 10)
```

that evaluates to `(10)` double expression comment eat two S-Expressions in a
row.

but scheme-mode highlights the whole line as comment (starting at #;)

--
Jakub T. Jankiewicz, Senior Front-End Developer
https://jcubic.pl/me




Acknowledgement sent to "Jakub T. Jankiewicz" <jcubic@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#61876; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 4 Sep 2023 09:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.