summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKohei Tsuruta <seventhepg@gmail.com>2025-01-07 07:36:14 -0800
committerJuri Linkov <juri@linkov.net>2025-01-09 09:50:21 +0200
commit01464fc882dbb56d4271fbb89b7b847e8374d39c (patch)
treefcd9cac956d0efcb0a226e3cbb6953235bdcee75 /lisp
parent59c57337923ed515e923ea65f168e1197d376868 (diff)
downloademacs-01464fc882dbb56d4271fbb89b7b847e8374d39c.tar.gz
emacs-01464fc882dbb56d4271fbb89b7b847e8374d39c.tar.bz2
emacs-01464fc882dbb56d4271fbb89b7b847e8374d39c.zip
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
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/typescript-ts-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el
index 4a38d1da596..0ffcb144771 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -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