Add "text" as a thing in tsx-ts-mode

* lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode):
Add definition of "text" (bug#75422).

Copyright-paperwork-exempt: yes
This commit is contained in:
Kohei Tsuruta 2025-01-07 07:36:14 -08:00 committed by Juri Linkov
parent 59c5733792
commit 01464fc882

View file

@ -564,7 +564,9 @@ at least 3 (which is the default value)."
(sentence ,(regexp-opt
(append typescript-ts-mode--sentence-nodes
'("jsx_element"
"jsx_self_closing_element")))))))
"jsx_self_closing_element"))))
(text ,(regexp-opt '("comment"
"template_string"))))))
;; Font-lock.
(setq-local treesit-font-lock-settings