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: Separate control flow keywords for Shell Scripts (#46722)

Cole McAnellyc67328ab2e0d
diff --git a/crates/languages/src/bash/highlights.scm b/crates/languages/src/bash/highlights.scm
index 7da0de793ad..a9d7b24060a 100644
--- a/crates/languages/src/bash/highlights.scm
+++ b/crates/languages/src/bash/highlights.scm
@@ -10,6 +10,14 @@
(variable_name) @variable
+[
+ "export"
+ "function"
+ "unset"
+ "local"
+ "declare"
+] @keyword
+
[
"case"
"do"
@@ -17,20 +25,15 @@
"elif"
"else"
"esac"
- "export"
"fi"
"for"
- "function"
"if"
"in"
"select"
"then"
- "unset"
"until"
"while"
- "local"
- "declare"
-] @keyword
+] @keyword.control
(comment) @comment