GNU bug report logs - #46416
27.1; syntax-propertize fails in mhtml-mode

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Wed, 10 Feb 2021 01:42:02 UTC

Severity: normal

Found in version 27.1

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Leo Liu <sdl.web <at> gmail.com>, 46416 <at> debbugs.gnu.org
Subject: bug#46416: 27.1; syntax-propertize fails in mhtml-mode
Date: Sun, 14 Feb 2021 03:25:34 +0200
On 10.02.2021 03:40, Leo Liu wrote:
> 1. emacs -q -l test.el
> 2. Create a new buffer in mhtml-mode
> 3. Add the following two lines:
> 
>     %%var1%%
>     "%%var2%%"
> 
> 4. Inspect the syntax of the % char (C-u C-x =) on both lines
> 
> % in double quotes has word syntax which seems unexpected.
> 
> If we do something similar in Emacs 26 both % chars have punctuation
> syntax.

I can't seem to be able to reproduce your scenario in Emacs 28 (in fact, 
I get %var1 and %var2 highlighted as variables), but it might be related 
to the

  "\\([\"']\\)[^\"'<>]*"

rule in sgml-syntax-propertize-rules.

If you could double-check the expected and actual behaviors in the 
current master, though, that would be great.




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

Previous Next


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