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.

languages: Improve function parameter highlighting for Bash (#48067)

ozacod1844b96c88ee
diff --git a/crates/languages/src/bash/highlights.scm b/crates/languages/src/bash/highlights.scm
index d3c53a68e93..4a8d7eaf345 100644
--- a/crates/languages/src/bash/highlights.scm
+++ b/crates/languages/src/bash/highlights.scm
@@ -46,6 +46,12 @@
(function_definition name: (word) @function)
(command_name (word) @function)
+(command
+ argument: [
+ (word) @variable.parameter
+ (_ (word) @variable.parameter)
+ ])
+
[
(file_descriptor)
(number)