]> git.eshelyaron.com Git - emacs.git/commitdiff
Add "text" as a thing in tsx-ts-mode
authorKohei Tsuruta <seventhepg@gmail.com>
Tue, 7 Jan 2025 15:36:14 +0000 (07:36 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 Jan 2025 10:58:57 +0000 (11:58 +0100)
* lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode):
Add definition of "text" (bug#75422).

Copyright-paperwork-exempt: yes
(cherry picked from commit 01464fc882dbb56d4271fbb89b7b847e8374d39c)

lisp/progmodes/typescript-ts-mode.el

index 6363b77b67fb3a7a1ccf64cefa2c59180fd40cb4..008da6e3b75f20aeab59ea6b28f9290d2e7d44c3 100644 (file)
@@ -630,8 +630,9 @@ at least 3 (which is the default value)."
                    (sentence ,(regexp-opt
                                (append typescript-ts-mode--sentence-nodes
                                        '("jsx_element"
-                                         "jsx_self_closing_element"))
-                               'symbols)))))
+                                         "jsx_self_closing_element"))))
+                   (text ,(regexp-opt '("comment"
+                                        "template_string"))))))
 
     ;; Font-lock.
     (setq-local treesit-font-lock-settings