[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 db8347c8c87 1/2: Add font-locking for hash-bang lines in js-ts-
From: |
Dmitry Gutov |
Subject: |
emacs-29 db8347c8c87 1/2: Add font-locking for hash-bang lines in js-ts-mode |
Date: |
Sat, 9 Dec 2023 21:52:18 -0500 (EST) |
branch: emacs-29
commit db8347c8c87c774f2d60ee9fce65b20ef5743a44
Author: nverno <noah.v.peart@gmail.com>
Commit: Dmitry Gutov <dmitry@gutov.dev>
Add font-locking for hash-bang lines in js-ts-mode
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Add font-lock for hash bang line.
---
lisp/progmodes/js.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 07d12cb7b4b..71aa5cbea68 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3506,7 +3506,7 @@ Check if a node type is available, then return the right
indent rules."
:language 'javascript
:feature 'comment
- '((comment) @font-lock-comment-face)
+ '([(comment) (hash_bang_line)] @font-lock-comment-face)
:language 'javascript
:feature 'constant