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: Highlight constant identifiers (#12111)

Thorsten Ball7c9c80d66345
diff --git a/crates/languages/src/go/highlights.scm b/crates/languages/src/go/highlights.scm
index 8cbf976fb8d..17b009da35c 100644
--- a/crates/languages/src/go/highlights.scm
+++ b/crates/languages/src/go/highlights.scm
@@ -110,6 +110,9 @@
(imaginary_literal)
] @number
+(const_spec
+ name: (identifier) @constant)
+
[
(true)
(false)