From: nverno Date: Sat, 9 Dec 2023 19:35:44 +0000 (-0800) Subject: Add font-locking for hash-bang lines in typescript-ts-mode. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b5e9758d89bc3270b38f22e33d584b6e1c0959f6;p=emacs.git Add font-locking for hash-bang lines in typescript-ts-mode. * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--font-lock-settings): Add font-lock for hash bang line. (cherry picked from commit 71bc2815ccdf443d49865ea913048658a6634823) --- diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index 7998b3740b6..7f0b7236301 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -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