From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Randy Taylor <dev@rjt.dev>, Yuan Fu <casouri@gmail.com>,
Theodor Thornhill <theo@thornhill.no>,
Basil Contovounesios <contovob@tcd.ie>,
Dmitry Gutov <dmitry@gutov.dev>,
64019@debbugs.gnu.org, Daniel Colascione <dancol@dancol.org>
Subject: bug#64019: 29.0.91; Fix some tree-sitter :match regexps
Date: Sat, 17 Jun 2023 10:39:16 +0200 [thread overview]
Message-ID: <365EBCE9-9EC1-4B90-ADB9-2690C2CF8B50@gmail.com> (raw)
In-Reply-To: <87sfaqwpmz.fsf@linux-m68k.org>
17 juni 2023 kl. 08.48 skrev Andreas Schwab <schwab@linux-m68k.org>:
>>> - (:match "\\`?[#\"'`:?]" @char))
>>> + (:match "\\`\\?[#\"'`:?]" @char))
>>
>> I don't mind, but it seems like both versions do the same thing:
Interesting! Now as Andreas says,
> This depends on `?' being treated as an ordinary character if occuring
> in a context where the special meaning does not make sense, which is
> poor practice.
which is quite right and that `?` should indeed be escaped for style reasons if nothing else.
However there appears to be a hitherto unknown parsing bug in the Emacs regexp parser here.
(And in xr, which has the ambition to be mostly bug-compatible with Emacs.)
I'll open a new bug about it.
next prev parent reply other threads:[~2023-06-17 8:39 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-12 14:25 bug#64019: 29.0.91; Fix some tree-sitter :match regexps Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-12 14:48 ` Mattias Engdegård
2023-06-12 15:10 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-12 15:37 ` Eli Zaretskii
2023-06-12 20:22 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-13 2:36 ` Eli Zaretskii
2023-06-13 13:51 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-12 16:07 ` Mattias Engdegård
2023-06-12 21:39 ` Dmitry Gutov
2023-06-13 7:47 ` Mattias Engdegård
2023-06-13 17:06 ` Dmitry Gutov
2023-06-12 21:33 ` Dmitry Gutov
2023-06-13 2:37 ` Eli Zaretskii
2023-06-13 14:08 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-13 17:06 ` Dmitry Gutov
2023-06-15 17:17 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-17 2:00 ` Dmitry Gutov
2023-06-17 6:48 ` Andreas Schwab
2023-06-17 8:39 ` Mattias Engdegård [this message]
2023-06-17 12:21 ` Mattias Engdegård
2023-06-17 15:44 ` Dmitry Gutov
2023-06-17 16:13 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-17 16:34 ` Eli Zaretskii
2023-06-17 16:56 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-17 17:35 ` Eli Zaretskii
2023-06-17 19:54 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-30 12:46 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-07-30 12:59 ` Eli Zaretskii
2023-07-30 16:04 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=365EBCE9-9EC1-4B90-ADB9-2690C2CF8B50@gmail.com \
--to=mattias.engdegard@gmail.com \
--cc=64019@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=contovob@tcd.ie \
--cc=dancol@dancol.org \
--cc=dev@rjt.dev \
--cc=dmitry@gutov.dev \
--cc=schwab@linux-m68k.org \
--cc=theo@thornhill.no \
/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).