GNU bug report logs -
#59816
29.0.60; c++-ts-mode handles one-line comments badly
Previous Next
Reported by: Herman, Géza <geza.herman <at> gmail.com>
Date: Sun, 4 Dec 2022 13:00:02 UTC
Severity: normal
Found in version 29.0.60
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 59816 <at> debbugs.gnu.org (full text, mbox):
Hi Theo, yes, it works correctly with your patch, thanks!
On 12/5/22 14:21, Theodor Thornhill wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Theodor Thornhill <theo <at> thornhill.no>
>>> Cc: geza.herman <at> gmail.com, eliz <at> gnu.org
>>> Date: Mon, 05 Dec 2022 13:44:49 +0100
>>>
>>> You're right. This is my bad. This patch addresses it. What do you
>>> think, Eli?
>> I'll defer to people who know more than I do about these modes.
>>
> Sure, added Yuan to CC.
>
>>> BTW - I see that many modes in general don't refer to their
>>> syntax-tables in their define-derived-mode form. Is that intentional?
>> The ELisp manual says:
>>
>> -- Macro: define-derived-mode variant parent name docstring
>> keyword-args... body...
>> This macro defines VARIANT as a major mode command, using NAME as
>> the string form of the mode name. VARIANT and PARENT should be
>> unquoted symbols.
>>
>> The new command VARIANT is defined to call the function PARENT,
>> then override certain aspects of that parent mode:
>>
>> [...]
>>
>> • The new mode has its own syntax table, kept in the variable
>> ‘VARIANT-syntax-table’, unless you override this using the
>> ‘:syntax-table’ keyword (see below). ‘define-derived-mode’
>> makes the parent mode’s syntax-table the parent of
>> ‘VARIANT-syntax-table’, unless the latter is already set and
>> already has a parent different from the standard syntax table.
>>
>> So there's no need to mention it because it happens automatically.
> Right, thanks!
>
> Can you test this patch, Herman, and see if it works for you now?
>
> Theo
This bug report was last modified 2 years and 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.