]> git.eshelyaron.com Git - emacs.git/commitdiff
Add font-locking for hash-bang lines in js-ts-mode
authornverno <noah.v.peart@gmail.com>
Sat, 9 Dec 2023 19:28:15 +0000 (11:28 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Dec 2023 06:38:43 +0000 (07:38 +0100)
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Add font-lock for hash bang line.

lisp/progmodes/js.el

index b3a0f5a7c04722fcd040c62451dc87c41d805333..44eda03f7ce3dd395b08ba8442b97912c30665c5 100644 (file)
@@ -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