diff options
| author | Kohei Tsuruta | 2025-01-07 07:36:14 -0800 |
|---|---|---|
| committer | Juri Linkov | 2025-01-09 09:50:21 +0200 |
| commit | 01464fc882dbb56d4271fbb89b7b847e8374d39c (patch) | |
| tree | fcd9cac956d0efcb0a226e3cbb6953235bdcee75 | |
| parent | 59c57337923ed515e923ea65f168e1197d376868 (diff) | |
| download | emacs-01464fc882dbb56d4271fbb89b7b847e8374d39c.tar.gz 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
| -rw-r--r-- | lisp/progmodes/typescript-ts-mode.el | 4 |
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)." | |||
| 564 | (sentence ,(regexp-opt | 564 | (sentence ,(regexp-opt |
| 565 | (append typescript-ts-mode--sentence-nodes | 565 | (append typescript-ts-mode--sentence-nodes |
| 566 | '("jsx_element" | 566 | '("jsx_element" |
| 567 | "jsx_self_closing_element"))))))) | 567 | "jsx_self_closing_element")))) |
| 568 | (text ,(regexp-opt '("comment" | ||
| 569 | "template_string")))))) | ||
| 568 | 570 | ||
| 569 | ;; Font-lock. | 571 | ;; Font-lock. |
| 570 | (setq-local treesit-font-lock-settings | 572 | (setq-local treesit-font-lock-settings |