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.

Don't apply the 'literal' color to entire markdown code blocks

Max Brunsfeld3fc2e0754bb0
diff --git a/crates/zed/src/languages/markdown/highlights.scm b/crates/zed/src/languages/markdown/highlights.scm
index 83bf7b57a48..971c2768680 100644
--- a/crates/zed/src/languages/markdown/highlights.scm
+++ b/crates/zed/src/languages/markdown/highlights.scm
@@ -14,11 +14,11 @@
(list_marker_parenthesis)
] @punctuation.list_marker
-[
- (indented_code_block)
- (fenced_code_block)
- (code_span)
-] @text.literal
+(code_span) @text.literal
+
+(fenced_code_block
+ (info_string
+ (language) @text.literal))
(link_destination) @link_uri
(link_text) @link_text