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:
@@ -7,6 +7,7 @@
|
||||
"exclude"
|
||||
"retract"
|
||||
"module"
|
||||
"ignore"
|
||||
] @keyword
|
||||
|
||||
"=>" @operator
|
||||
|
||||
@@ -27,3 +27,9 @@
|
||||
("(") @structure.open
|
||||
(")") @structure.close
|
||||
)
|
||||
|
||||
(ignore_directive
|
||||
"ignore" @structure.anchor
|
||||
("(") @structure.open
|
||||
(")") @structure.close
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user