From: nverno Date: Sat, 9 Dec 2023 19:28:15 +0000 (-0800) Subject: Add font-locking for hash-bang lines in js-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c8d64aa3c1d88d9f9277374ef66caf09330eb76;p=emacs.git 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. --- 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