* lisp/progmodes/js.el (js-ts-mode): Use 'js--regexp-opt-symbol' for 'js--treesit-sexp-nodes', 'js--treesit-sentence-nodes' and 'text' that wraps the regexp in \_< and \_> delimiters to avoid false positives such as "expression" used for "expression_statement". (js--treesit-sexp-nodes): Add more useful nodes "parenthesized_expression", "formal_parameters", "statement_block", "object", "object_pattern", "named_imports", "class_body".
152 KiB
152 KiB