From 81d01ef853ebb437e40b07c777fc204a217471fa Mon Sep 17 00:00:00 2001 From: ozacod <47009516+ozacod@users.noreply.github.com> Date: Thu, 12 Feb 2026 15:56:47 +0300 Subject: [PATCH] languages: Add shebang highlight support for Bash (#48064) Highlights the shebang line as a directive instead of a comment. Before: before After: after Release Notes: - Added shebang highlight support for Bash Co-authored-by: ozacod --- crates/languages/src/bash/highlights.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/languages/src/bash/highlights.scm b/crates/languages/src/bash/highlights.scm index a9d7b24060a3c8070d699166d27ac91580ca2379..2852e5ff9a34d28c93ad274c5c0e80f9d5ffe2d0 100644 --- a/crates/languages/src/bash/highlights.scm +++ b/crates/languages/src/bash/highlights.scm @@ -37,6 +37,12 @@ (comment) @comment +; Shebang +((program + . + (comment) @keyword.directive) + (#match? @keyword.directive "^#![ \t]*/")) + (function_definition name: (word) @function) (command_name (word) @function)