unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Leo Liu <sdl.web@gmail.com>, 46416@debbugs.gnu.org
Subject: bug#46416: 27.1; syntax-propertize fails in mhtml-mode
Date: Sun, 14 Feb 2021 03:25:34 +0200	[thread overview]
Message-ID: <299f9014-7b6f-75c8-c3a8-3d6aa04d199f@yandex.ru> (raw)
In-Reply-To: <m1v9b0g0ns.fsf@gmail.com>

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.





  reply	other threads:[~2021-02-14  1:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-10  1:40 bug#46416: 27.1; syntax-propertize fails in mhtml-mode Leo Liu
2021-02-14  1:25 ` Dmitry Gutov [this message]
2021-02-14  5:15   ` Leo Liu
2022-06-16 14:24 ` Lars Ingebrigtsen
2022-06-22  6:11   ` Leo Liu
2022-06-23  8:43     ` Lars Ingebrigtsen
2022-06-26 10:47 ` Leo Liu
2022-06-26 15:51   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=299f9014-7b6f-75c8-c3a8-3d6aa04d199f@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=46416@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).