From: Dmitry Gutov Date: Tue, 12 Sep 2023 23:21:04 +0000 (+0300) Subject: Tweak s-p-f for js-ts-mode X-Git-Tag: emacs-29.1.90~104 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5dcc4b7eab1bb6949bfcd179b3582f777dcc2cea;p=emacs.git Tweak s-p-f for js-ts-mode * lisp/progmodes/js.el (js-ts--s-p-query): Consider two more contexts (bug#65470). --- 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)