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.

go: Add semantic token rule for format string interpolations (#52394)

Marat Fattakhov90fa50a617eb
diff --git a/crates/languages/src/go/semantic_token_rules.json b/crates/languages/src/go/semantic_token_rules.json
index 627a5c5f187..612076463c2 100644
--- a/crates/languages/src/go/semantic_token_rules.json
+++ b/crates/languages/src/go/semantic_token_rules.json
@@ -3,5 +3,10 @@
"token_type": "variable",
"token_modifiers": ["readonly"],
"style": ["constant"]
+ },
+ {
+ "token_type": "string",
+ "token_modifiers": ["format"],
+ "style": ["string.special"]
}
]