From ee043a2703d3175a7745c111146aa19a13f8e0ba Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 21 Oct 2023 15:05:45 +0300 Subject: [PATCH] tsx-ts-mode--font-lock-compatibility-bb1f97b: Re-fix the previous fix * lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode--font-lock-compatibility-bb1f97b): Make sure the tested query is actually valid in the new grammar (bug#66646). --- lisp/progmodes/typescript-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index 709d3718a0a..ec220ab8d03 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -166,7 +166,7 @@ Argument LANGUAGE is either `typescript' or `tsx'." ;; but then raises an error if the wrong node type is used. So it is ;; important to check with the new node type (member_expression) (condition-case nil - (progn (treesit-query-capture language '(jsx_opening_element (member_expression) @capture)) + (progn (treesit-query-capture language '((jsx_opening_element (member_expression) @capture))) '((jsx_opening_element [(member_expression (identifier)) (identifier)] @typescript-ts-jsx-tag-face) -- 2.39.2