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 syntax highlighting conflicts with certain glsl types (#32022)

not a cowb7c2d4876c24
diff --git a/extensions/glsl/languages/glsl/config.toml b/extensions/glsl/languages/glsl/config.toml
index 72353cfbf52..0144e981cc4 100644
--- a/extensions/glsl/languages/glsl/config.toml
+++ b/extensions/glsl/languages/glsl/config.toml
@@ -10,6 +10,7 @@ path_suffixes = [
# Other
"glsl"
]
+first_line_pattern = '^#version \d+'
line_comments = ["// "]
block_comment = ["/* ", " */"]
brackets = [