Files
oak-gpui/crates/languages/src/gomod/structure.scm
T
Bing Wang 379bdb227a 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
2025-11-03 09:11:50 -06:00

36 lines
601 B
Scheme

(require_directive
"require" @structure.anchor
("(") @structure.open
(")") @structure.close
)
(exclude_directive
"exclude" @structure.anchor
("(") @structure.open
(")") @structure.close
)
(module_directive
"module" @structure.anchor
("(") @structure.open
(")") @structure.close
)
(replace_directive
"replace" @structure.anchor
("(") @structure.open
(")") @structure.close
)
(retract_directive
"retract" @structure.anchor
("(") @structure.open
(")") @structure.close
)
(ignore_directive
"ignore" @structure.anchor
("(") @structure.open
(")") @structure.close
)