GNU bug report logs - #43558
[PATCH]: Fix (forward-comment 1) when end delimiter is escaped.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Tue, 22 Sep 2020 09:36:02 UTC

Severity: normal

Tags: confirmed

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 43558 <at> debbugs.gnu.org, Mattias EngdegÄrd <mattiase <at> acm.org>, Stefan Monnier <monnier <at> iro.umontreal.ca>, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#43558: [PATCH]: Fix (forward-comment 1) when end delimiter is escaped.
Date: Thu, 28 Apr 2022 13:17:12 +0200
Alan Mackenzie <acm <at> muc.de> writes:

> I think the bug should stay open, though.  CC Mode still doesn't handle
> multi-line comments absolutely correctly, and these could surely be
> fixed, like Stefan said, by using syntax-table text properties somehow.

Just to add a test case for this bug -- put this into a C file:

/*
  \*/
a */

cc-mode will highlight that as one comment (i.e., the "a" will be
coloured with the comment face), but the file won't compile, since the
comment ended at line two.  (This is in Emacs 29.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 48 days ago.

Previous Next


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