From 9c8d64aa3c1d88d9f9277374ef66caf09330eb76 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 b3a0f5a7c04..44eda03f7ce 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -3497,7 +3497,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.5