languages: Add ignore keyword for gomod (#41520)

go 1.25 introduce ignore directive in go.mod to specify directories the
go command should ignore.

ref: https://tip.golang.org/doc/go1.25#go-command


Release Notes:

- Added syntax highlighting support for the new [`ignore`
directive](https://tip.golang.org/doc/go1.25#go-command) in `go.mod`
files
This commit is contained in:
Bing Wang
2025-11-03 09:11:50 -06:00
committed by GitHub
parent 04e53bff3d
commit 379bdb227a
4 changed files with 9 additions and 2 deletions
@@ -7,6 +7,7 @@
"exclude"
"retract"
"module"
"ignore"
] @keyword
"=>" @operator
+6
View File
@@ -27,3 +27,9 @@
("(") @structure.open
(")") @structure.close
)
(ignore_directive
"ignore" @structure.anchor
("(") @structure.open
(")") @structure.close
)