From 3e7f0ce7b7aa10a76ac6fe2269495ec01d1d33e6 Mon Sep 17 00:00:00 2001 From: ozacod <47009516+ozacod@users.noreply.github.com> Date: Thu, 29 Jan 2026 00:16:33 +0300 Subject: [PATCH] languages: Add highlighting for Go directives (#47621) Closes #4381 Before: before After: after Release Notes: - Added highlighting for Go directives --- crates/languages/src/go/highlights.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/languages/src/go/highlights.scm b/crates/languages/src/go/highlights.scm index 5d630cbdfc746b56320cd5083222897d84dbf528..e861625ecc7bfa5b72ab0fa15df401305258510a 100644 --- a/crates/languages/src/go/highlights.scm +++ b/crates/languages/src/go/highlights.scm @@ -138,3 +138,11 @@ ] @constant.builtin (comment) @comment + +; Go directives +((comment) @preproc + (#match? @preproc "^//go:")) + +((comment) @preproc + (#match? @preproc "^// \\+build")) +