From 03f02804e594b8cf6b905102d2770d3e94ffce26 Mon Sep 17 00:00:00 2001 From: d1y Date: Mon, 12 May 2025 19:56:38 +0800 Subject: [PATCH] Highlight shebang in TypeScript and JavaScript (#30531) After: ![image](https://github.com/user-attachments/assets/8ae1049d-96c7-45e2-b905-1f0fba7f862c) Before: ![image](https://github.com/user-attachments/assets/56317b12-d745-45f4-a7b6-880507884bae) Release Notes: - Typescript and javascript highlight shebang-line --- crates/languages/src/javascript/highlights.scm | 2 ++ crates/languages/src/typescript/highlights.scm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/languages/src/javascript/highlights.scm b/crates/languages/src/javascript/highlights.scm index a7bf70308c..685bdba3c5 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 3e628981c4..9c7289bd0f 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)