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: Tue, 13 Jun 2023 00:33:08 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 12/06/2023 17:25, Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
-      (:match "^DEFUN$" @fn))
+      (:match "\\`DEFUN\\'" @fn))

FWIW, most of these changes are superfluous, practically speaking, because node text for these node types (like 'identifier', in this example) cannot include newlines.

So we mostly gain some theoretical increase in strictness, at the expense of a few extra chars in the code.

With possible exception of c-ts-mode--c-or-c++-regexp, which I simply don't understand to be able to tell one way or another.

So I think we could wait until 29.1's release, for example, and then apply this on master.





reply via email to

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