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 a7bf70308c8339428bda5964d91e7889f4c4c0fd..685bdba3c5284226d90eadb0bca5874d946df3f9 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 3e628981c4fee667b4dd7fd6a4ed958be8bbad8e..9c7289bd0f397e03aff0e8b7398472780f5e3458 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)