]> git.eshelyaron.com Git - emacs.git/commitdiff
Add font-locking for hash-bang lines in typescript-ts-mode.
authornverno <noah.v.peart@gmail.com>
Sat, 9 Dec 2023 19:35:44 +0000 (11:35 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Dec 2023 06:38:59 +0000 (07:38 +0100)
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Add font-lock for hash bang line.

(cherry picked from commit 71bc2815ccdf443d49865ea913048658a6634823)

lisp/progmodes/typescript-ts-mode.el

index 7998b3740b65294c5de5b8919772f134431c7788..7f0b72363013a89e99232732fb286e9f3e8d3d54 100644 (file)
@@ -205,7 +205,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
   (treesit-font-lock-rules
    :language language
    :feature 'comment
-   `((comment) @font-lock-comment-face)
+   `([(comment) (hash_bang_line)] @font-lock-comment-face)
 
    :language language
    :feature 'constant