From db8347c8c87c774f2d60ee9fce65b20ef5743a44 Mon Sep 17 00:00:00 2001 From: nverno Date: Sat, 9 Dec 2023 11:28:15 -0800 Subject: [PATCH] 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 -- 2.39.2