Skip to content

Commit b0561a4

Browse files
author
Artyom Andreev
committed
fix go work syntax having wrong highlighting entirely
1 parent bc8a81d commit b0561a4

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

syntax/gowork.vim

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ syntax case match
1616

1717
" match keywords
1818
syntax keyword goworkGo go contained
19-
syntax keyword goworkUse use
20-
syntax keyword goworkExclude exclude
19+
syntax keyword goworkUse use
2120
syntax keyword goworkReplace replace
22-
syntax keyword goworkRetract retract
2321

24-
" require, exclude, replace, and go can be also grouped into block
25-
syntax region goworkUse start='require (' end=')' transparent contains=goworkUse,goworkPath
22+
" use, exclude, replace, and go can be also grouped into block
23+
syntax region goworkUse start='use (' end=')' transparent contains=goworkUse
2624
syntax region goworkReplace start='replace (' end=')' transparent contains=goworkReplace,goworkVersion
2725
syntax match goworkGo '^go .*$' transparent contains=goworkGo,goworkGoVersion
2826

@@ -47,11 +45,6 @@ highlight default link goworkReplaceOperator Operator
4745
syntax match goworkGoVersion "1\.\d\+" contained
4846
highlight default link goworkGoVersion Identifier
4947

50-
51-
" match paths in use directives
52-
syntax match goworkPath "\f\+"
53-
54-
highlight default link goworkPath Identifier
5548
" highlight versions:
5649
" * vX.Y.Z-pre
5750
" * vX.Y.Z

0 commit comments

Comments
 (0)