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.

Fix Go tests failing on main (#7285)

Thorsten Ballec9f44727e2d
diff --git a/crates/zed/src/languages/go.rs b/crates/zed/src/languages/go.rs
index 12a63c3efee..2fb0d35cf06 100644
--- a/crates/zed/src/languages/go.rs
+++ b/crates/zed/src/languages/go.rs
@@ -398,7 +398,6 @@ mod tests {
let highlight_type = grammar.highlight_id_for_name("type").unwrap();
let highlight_keyword = grammar.highlight_id_for_name("keyword").unwrap();
let highlight_number = grammar.highlight_id_for_name("number").unwrap();
- let highlight_field = grammar.highlight_id_for_name("property").unwrap();
assert_eq!(
language
@@ -454,7 +453,7 @@ mod tests {
Some(CodeLabel {
text: "two.Three a.Bcd".to_string(),
filter_range: 0..9,
- runs: vec![(4..9, highlight_field), (12..15, highlight_type)],
+ runs: vec![(12..15, highlight_type)],
})
);
}