Skip to content

Commit

Permalink
feat(gomod): punctuation, toolchain highlights
Browse files Browse the repository at this point in the history
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 // klauspost/reedsolomon#283
	v1.11.6 // klauspost/reedsolomon#240
	[v1.11.3, v1.11.5] // klauspost/reedsolomon#238
	v1.11.2 // klauspost/reedsolomon#229
)
```
  • Loading branch information
ribru17 authored and clason committed Dec 2, 2024
1 parent 70d44da commit 2444c80
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion queries/gomod/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,14 @@
[
(version)
(go_version)
] @string
(toolchain_name)
] @string.special

[
"("
")"
"["
"]"
] @punctuation.bracket

"," @punctuation.delimiter

0 comments on commit 2444c80

Please sign in to comment.