Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
grammars: Distinguish control-flow keyword highlighting in Go (#63769)
Gami1c3aa005ac5d
diff --git a/crates/grammars/src/go/highlights.scm b/crates/grammars/src/go/highlights.scmindex aaec47bf5e8..25ec7cb18d4 100644--- a/crates/grammars/src/go/highlights.scm+++ b/crates/grammars/src/go/highlights.scm@@ -101,32 +101,35 @@] @operator[- "break"- "case""chan""const"+ "func"+ "import"+ "interface"+ "map"+ "package"+ "struct"+ "type"+ "var"+] @keyword++[+ "break"+ "case""continue""default""defer""else""fallthrough""for"- "func""go""goto""if"- "import"- "interface"- "map"- "package""range""return""select"- "struct""switch"- "type"- "var"-] @keyword+] @keyword.control[(interpreted_string_literal)