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

On 2021-02-14 03:25 +0200, Dmitry Gutov wrote:
> 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.

Yes I can confirm it's this rule that seems to remove syntax-table
property that has been applied by preceding rules.

I can reproduce this bug by simplifying the said rule to

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

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

Unfortunately I don't have emacs 28 at hand so cannot test immediately.





  reply	other threads:[~2021-02-14  5:15 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
2021-02-14  5:15   ` Leo Liu [this message]
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=m1blcnz0u1.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=46416@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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).