From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#46416: 27.1; syntax-propertize fails in mhtml-mode Date: Sun, 14 Feb 2021 03:25:34 +0200 Message-ID: <299f9014-7b6f-75c8-c3a8-3d6aa04d199f@yandex.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3438"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: Leo Liu , 46416@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 02:26:18 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lB6B0-0000lR-HM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 02:26:18 +0100 Original-Received: from localhost ([::1]:36466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB6Az-00044u-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 20:26:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB6Ak-00044d-NQ for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 20:26:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB6Aj-0005Ex-Qt for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 20:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lB6Aj-00037H-N7 for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 20:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 01:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46416 X-GNU-PR-Package: emacs Original-Received: via spool by 46416-submit@debbugs.gnu.org id=B46416.161326594711959 (code B ref 46416); Sun, 14 Feb 2021 01:26:01 +0000 Original-Received: (at 46416) by debbugs.gnu.org; 14 Feb 2021 01:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:35270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB6AU-00036p-MD for submit@debbugs.gnu.org; Sat, 13 Feb 2021 20:25:46 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:38645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB6AR-00036a-Ay for 46416@debbugs.gnu.org; Sat, 13 Feb 2021 20:25:44 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id b3so4488897wrj.5 for <46416@debbugs.gnu.org>; Sat, 13 Feb 2021 17:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lasDnMP8YllWENqwVeXY40itkR6jlagXD2efZE/JoPI=; b=b7N1G0xoYrmQ/cBuMEoGQNwek37vcPhB+LUZqkS/YDCdVjQPXBIyr91vxl1ALiuMoe mhXpQg/NraNMi8SlXQXfxyFzLGGzu7lBciUj43FAOK3iVVz3FZbReCQXJNuSFGnoh6qC EwCb+QtnsPxnA2H8IX6L2tYbgnz+vF+39oUTJPL0d5xVWhd980UmVvUDsrIfDaKZ85cr 6TohRQP/xs5wALbuoZfQV2tSBoKGsN38mePtcFL98UFGHmIP4mcAd2fz1AMc5x8nM/om JSwSW97s94gKfdj59h/GWdSbh8vhW+kQHXMuHSPIQjPGFK4d759hkbuhOK+JyZ22SB5o N5mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lasDnMP8YllWENqwVeXY40itkR6jlagXD2efZE/JoPI=; b=p0BrW8arQJe7kz4lPFqWrBOkn/fV25tNtxyglpNwUT5GaT+Gy4YNt2Q6aJhtU+WVYE fKuDeAHCGAPo7TfPMTO36el45gigAXb0h1wI8XkMGuiLj4mFPRfCqRkY5T9tBjxCqrPV beAQVysiYHVmwRMzNprIRxM70pwUr9gvyAkcnEtSFP/cHQDu+5poGzZi/3G67MGjRXJb jqcVgpnfecNdTNMK181ON+zgg3/bqTOu0f53nPexb5//ElPRtoqXY5eKNWGYr5WKEZ86 LeSWsP8/nYuV7LckGEB/U/z7H0AJbmqhnFE4Dj83KGjQmjBm7phVwSYjJovb1FI0B2ov aW3w== X-Gm-Message-State: AOAM531jKObnlsLMndkdeZWlpD49VbrSOEtnEwQi/sixhdY3zKF2Ln7s Wz2St+kWkpU4rujqLHyxxUFCSbX3dWE= X-Google-Smtp-Source: ABdhPJyXKfJ16co0wkaWZotgOASNqut8ODNuJhxviLLZomrCyR2bwDBHfQvmVzH+ylxMdz4IqOjKyA== X-Received: by 2002:adf:fbce:: with SMTP id d14mr10878129wrs.44.1613265937464; Sat, 13 Feb 2021 17:25:37 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id w8sm17177755wrm.21.2021.02.13.17.25.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Feb 2021 17:25:36 -0800 (PST) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199974 Archived-At: 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.