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: Highlight case statements and special variables for Shell Scripts (#48200)

Cole McAnelly255ee7296daf
diff --git a/crates/languages/src/bash/highlights.scm b/crates/languages/src/bash/highlights.scm
index 2852e5ff9a3..d3c53a68e93 100644
--- a/crates/languages/src/bash/highlights.scm
+++ b/crates/languages/src/bash/highlights.scm
@@ -110,3 +110,6 @@
(command (_) @constant)
(#match? @constant "^-")
)
+
+(case_item value: (_) @string.regex)
+(special_variable_name) @variable.special