[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 71bc2815ccd 2/2: Add font-locking for hash-bang lines in typesc
From: |
Dmitry Gutov |
Subject: |
emacs-29 71bc2815ccd 2/2: Add font-locking for hash-bang lines in typescript-ts-mode. |
Date: |
Sat, 9 Dec 2023 21:52:18 -0500 (EST) |
branch: emacs-29
commit 71bc2815ccdf443d49865ea913048658a6634823
Author: nverno <noah.v.peart@gmail.com>
Commit: Dmitry Gutov <dmitry@gutov.dev>
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.
---
lisp/progmodes/typescript-ts-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/typescript-ts-mode.el
b/lisp/progmodes/typescript-ts-mode.el
index 0fbac709c63..bcc08511337 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