[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 16e68e64f9 1/2: ; * lisp/progmodes/c-ts-mode.el: Change rx to r
From: |
Yuan Fu |
Subject: |
emacs-29 16e68e64f9 1/2: ; * lisp/progmodes/c-ts-mode.el: Change rx to regexp-opt. |
Date: |
Thu, 1 Dec 2022 23:02:35 -0500 (EST) |
branch: emacs-29
commit 16e68e64f924e99d0ad823dcfa9f7b7cc8975b50
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; * lisp/progmodes/c-ts-mode.el: Change rx to regexp-opt.
---
lisp/progmodes/c-ts-mode.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index f802a6ddb2..ad64df6143 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -525,11 +525,11 @@ the subtrees."
;; Navigation.
(setq-local treesit-defun-type-regexp
- (rx (or "function_definition"
- "type_definition"
- "struct_specifier"
- "enum_specifier"
- "union_specifier")))
+ (regexp-opt '("function_definition"
+ "type_definition"
+ "struct_specifier"
+ "enum_specifier"
+ "union_specifier")))
;; Nodes like struct/enum/union_specifier can appear in
;; function_definitions, so we need to find the top-level node.