mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
* lisp/progmodes/js.el: Improve sexp navigation in js-ts-mode (bug#72573)
(js--treesit-sexp-nodes): Add "template_string", "template_substitution", "property_identifier". (js-ts-mode): Replace "template_string" with "string_fragment" in 'text' part of 'treesit-thing-settings'.
This commit is contained in:
parent
dc2cdd3683
commit
0155f2ae2c
@ -3861,11 +3861,14 @@ See `treesit-thing-settings' for more information.")
|
||||
"array"
|
||||
"function"
|
||||
"string"
|
||||
"template_string"
|
||||
"template_substitution"
|
||||
"escape"
|
||||
"template"
|
||||
"regex"
|
||||
"number"
|
||||
"identifier"
|
||||
"property_identifier"
|
||||
"this"
|
||||
"super"
|
||||
"true"
|
||||
@ -3929,7 +3932,7 @@ See `treesit-thing-settings' for more information.")
|
||||
(sexp ,(js--regexp-opt-symbol js--treesit-sexp-nodes))
|
||||
(sentence ,(js--regexp-opt-symbol js--treesit-sentence-nodes))
|
||||
(text ,(js--regexp-opt-symbol '("comment"
|
||||
"template_string"))))))
|
||||
"string_fragment"))))))
|
||||
|
||||
;; Fontification.
|
||||
(setq-local treesit-font-lock-settings js--treesit-font-lock-settings)
|
||||
|
Loading…
Reference in New Issue
Block a user