Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Highlight shebang in TypeScript and JavaScript (#30531)

d1y03f02804e594
diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm
index a7bf70308c8..685bdba3c52 100644
--- a/crates/languages/src/javascript/highlights.scm
+++ b/crates/languages/src/javascript/highlights.scm
@@ -77,6 +77,8 @@
(comment) @comment
+(hash_bang_line) @comment
+
[
(string)
(template_string)
diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm
index 3e628981c4f..9c7289bd0f3 100644
--- a/crates/languages/src/typescript/highlights.scm
+++ b/crates/languages/src/typescript/highlights.scm
@@ -104,6 +104,8 @@
(comment) @comment
+(hash_bang_line) @comment
+
[
(string)
(template_string)