nvim-treesitter/queries/gomod/highlights.scm
Riley Bruins 2444c8052f 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
)
```
2024-12-02 08:38:30 +01:00

30 lines
316 B
Scheme

[
"require"
"replace"
"go"
"toolchain"
"exclude"
"retract"
"module"
] @keyword
"=>" @operator
(comment) @comment @spell
(module_path) @string.special.url
[
(version)
(go_version)
(toolchain_name)
] @string.special
[
"("
")"
"["
"]"
] @punctuation.bracket
"," @punctuation.delimiter