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: Basil Contovounesios
Subject: bug#64019: 29.0.91; Fix some tree-sitter :match regexps
Date: Thu, 15 Jun 2023 18:17:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Basil Contovounesios [2023-06-13 15:08 +0100] wrote:

> I'm less concerned about the trivial bol/bos conversions in the patch
> and more about the corrections to incorrect regexps, such as:
> - the more benign \(:?...\) -> \(?:...\)
> - and the less benign [\d] -> [0-9].
[...]
> Here's the updated patch against emacs-29:

Mattias also spotted the following in
https://github.com/mattiase/relint/pull/14:

diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index 91d65a2777b..4b951f7606f 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -1021,7 +1021,7 @@ ruby-ts--s-p-query
                               (:match "\\`\\$[#\"'`:?]" @global_var))
                              ;; ?' ?" ?` are character literals.
                              ((character) @char
-                              (:match "\\`?[#\"'`:?]" @char))
+                              (:match "\\`\\?[#\"'`:?]" @char))
                              ;; Symbols like :+, :<=> or :foo=.
                              ((simple_symbol) @symbol
                               (:match "\\s." @symbol))
Is that TRT?

Thanks,

-- 
Basil

reply via email to

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