projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f2ade
)
Add font-locking for hash-bang lines in js-ts-mode
author
nverno
<noah.v.peart@gmail.com>
Sat, 9 Dec 2023 19:28:15 +0000
(11:28 -0800)
committer
Dmitry Gutov
<dmitry@gutov.dev>
Sun, 10 Dec 2023 02:49:06 +0000
(
04:49
+0200)
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Add font-lock for hash bang line.
lisp/progmodes/js.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/js.el
b/lisp/progmodes/js.el
index 07d12cb7b4b2bb84533a797e6cd0827f96f2e2a1..71aa5cbea684f7a1451d60b08f6de55e0b9075e9 100644
(file)
--- 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