@@ -13,19 +13,22 @@ syntax keyword gomodGo go contained
13
13
syntax keyword gomodRequire require
14
14
syntax keyword gomodExclude exclude
15
15
syntax keyword gomodReplace replace
16
+ syntax keyword gomodRetract retract
16
17
17
18
" require, exclude, replace, and go can be also grouped into block
18
- syntax region gomodRequire start =' require (' end =' )' transparent contains =gomodRequire,gomodVersion
19
- syntax region gomodExclude start =' exclude (' end =' )' transparent contains =gomodExclude,gomodVersion
20
- syntax region gomodReplace start =' replace (' end =' )' transparent contains =gomodReplace,gomodVersion
21
- syntax match gomodGo ' ^go .*$' transparent contains =gomodGo,gomodGoVersion
19
+ syntax region gomodRequire start =' require (' end =' )' transparent contains =gomodRequire,gomodVersion
20
+ syntax region gomodExclude start =' exclude (' end =' )' transparent contains =gomodExclude,gomodVersion
21
+ syntax region gomodReplace start =' replace (' end =' )' transparent contains =gomodReplace,gomodVersion
22
+ syntax region gomodRetract start =' retract \[ ' end =' \] ' transparent contains =gomodRetract,gomodVersion
23
+ syntax match gomodGo ' ^go .*$' transparent contains =gomodGo,gomodGoVersion
22
24
23
25
" set highlights
24
26
highlight default link gomodModule Keyword
25
27
highlight default link gomodGo Keyword
26
28
highlight default link gomodRequire Keyword
27
29
highlight default link gomodExclude Keyword
28
30
highlight default link gomodReplace Keyword
31
+ highlight default link gomodRetract Keyword
29
32
30
33
" comments are always in form of // ...
31
34
syntax region gomodComment start =" //" end =" $" contains =@Spell
0 commit comments