From d87fbde345f1abfeae627d33ef88581a963bbd89 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sun, 1 Dec 2024 14:29:42 -0800 Subject: [PATCH] feat(gomod): punctuation, toolchain highlights Reference file: ```gomod module github.com/klauspost/reedsolomon go 1.21 require github.com/klauspost/cpuid/v2 v2.2.8 require golang.org/x/sys v0.24.0 // indirect retract ( v1.12.2 // https://github.com/klauspost/reedsolomon/pull/283 v1.11.6 // https://github.com/klauspost/reedsolomon/issues/240 [v1.11.3, v1.11.5] // https://github.com/klauspost/reedsolomon/pull/238 v1.11.2 // https://github.com/klauspost/reedsolomon/pull/229 ) ``` --- queries/gomod/highlights.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/queries/gomod/highlights.scm b/queries/gomod/highlights.scm index 29cbe65747b..ff33df3ab2e 100644 --- a/queries/gomod/highlights.scm +++ b/queries/gomod/highlights.scm @@ -17,4 +17,14 @@ [ (version) (go_version) -] @string + (toolchain_name) +] @string.special + +[ + "(" + ")" + "[" + "]" +] @punctuation.bracket + +"," @punctuation.delimiter