projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db8347c
)
Add font-locking for hash-bang lines in typescript-ts-mode.
author
nverno
<noah.v.peart@gmail.com>
Sat, 9 Dec 2023 19:35:44 +0000
(11:35 -0800)
committer
Dmitry Gutov
<dmitry@gutov.dev>
Sun, 10 Dec 2023 02:50:06 +0000
(
04:50
+0200)
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Add font-lock for hash bang line.
lisp/progmodes/typescript-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/typescript-ts-mode.el
b/lisp/progmodes/typescript-ts-mode.el
index 0fbac709c6316c2796b824f2d2723f9fc8238e3d..bcc08511337fe5e3fb2617fe3760d52f3f572567 100644
(file)
--- a/
lisp/progmodes/typescript-ts-mode.el
+++ b/
lisp/progmodes/typescript-ts-mode.el
@@
-205,7
+205,7
@@
Argument LANGUAGE is either `typescript' or `tsx'."
(treesit-font-lock-rules
:language language
:feature 'comment
- `(
(comment)
@font-lock-comment-face)
+ `(
[(comment) (hash_bang_line)]
@font-lock-comment-face)
:language language
:feature 'constant