bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64019: 29.0.91; Fix some tree-sitter :match regexps


From: Dmitry Gutov
Subject: bug#64019: 29.0.91; Fix some tree-sitter :match regexps
Date: Sat, 17 Jun 2023 05:00:24 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 15/06/2023 20:17, Basil Contovounesios wrote:
Mattias also spotted the following in
https://github.com/mattiase/relint/pull/14:

-                              (:match "\\`?[#\"'`:?]" @char))
+                              (:match "\\`\\?[#\"'`:?]" @char))

I don't mind, but it seems like both versions do the same thing:

(string-match-p "\\`?!" "?!") => 0

(string-match-p "\\`?!" "!") => nil

Same results with "\\`\\?!".





reply via email to

[Prev in Thread] Current Thread [Next in Thread]