]> 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)
committerDmitry Gutov <dmitry@gutov.dev>
Sun, 10 Dec 2023 02:50:06 +0000 (04:50 +0200)
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Add font-lock for hash bang line.

lisp/progmodes/typescript-ts-mode.el

index 0fbac709c6316c2796b824f2d2723f9fc8238e3d..bcc08511337fe5e3fb2617fe3760d52f3f572567 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