From 16e68e64f924e99d0ad823dcfa9f7b7cc8975b50 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Thu, 1 Dec 2022 18:57:54 -0800 Subject: [PATCH] ; * 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 f802a6ddb2d..ad64df6143c 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. -- 2.39.2