[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0155f2ae2c8: * lisp/progmodes/js.el: Improve sexp navigation in j
From: |
Juri Linkov |
Subject: |
master 0155f2ae2c8: * lisp/progmodes/js.el: Improve sexp navigation in js-ts-mode (bug#72573) |
Date: |
Sun, 1 Sep 2024 13:03:10 -0400 (EDT) |
branch: master
commit 0155f2ae2c84c649452b0eaac3fd247a37e4eaff
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* 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'.
---
lisp/progmodes/js.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 75c8111035c..14ae4068263 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 0155f2ae2c8: * lisp/progmodes/js.el: Improve sexp navigation in js-ts-mode (bug#72573),
Juri Linkov <=