From 5dcc4b7eab1bb6949bfcd179b3582f777dcc2cea Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 13 Sep 2023 02:21:04 +0300 Subject: [PATCH] Tweak s-p-f for js-ts-mode * lisp/progmodes/js.el (js-ts--s-p-query): Consider two more contexts (bug#65470). --- lisp/progmodes/js.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 9b6da4ec2fc..1528c6b7de5 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -3871,6 +3871,8 @@ Currently there are `js-mode' and `js-ts-mode'." '(((regex pattern: (regex_pattern) @regexp)) ((variable_declarator value: (jsx_element) @jsx)) ((assignment_expression right: (jsx_element) @jsx)) + ((arguments (jsx_element) @jsx)) + ((parenthesized_expression (jsx_element) @jsx)) ((return_statement (jsx_element) @jsx)))))) (defun js-ts--syntax-propertize (beg end) -- 2.39.2