mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
fix go work syntax having wrong highlighting entirely
This commit is contained in:
@@ -16,13 +16,11 @@ syntax case match
|
|||||||
|
|
||||||
" match keywords
|
" match keywords
|
||||||
syntax keyword goworkGo go contained
|
syntax keyword goworkGo go contained
|
||||||
syntax keyword goworkUse use
|
syntax keyword goworkUse use
|
||||||
syntax keyword goworkExclude exclude
|
|
||||||
syntax keyword goworkReplace replace
|
syntax keyword goworkReplace replace
|
||||||
syntax keyword goworkRetract retract
|
|
||||||
|
|
||||||
" require, exclude, replace, and go can be also grouped into block
|
" use, exclude, replace, and go can be also grouped into block
|
||||||
syntax region goworkUse start='require (' end=')' transparent contains=goworkUse,goworkPath
|
syntax region goworkUse start='use (' end=')' transparent contains=goworkUse
|
||||||
syntax region goworkReplace start='replace (' end=')' transparent contains=goworkReplace,goworkVersion
|
syntax region goworkReplace start='replace (' end=')' transparent contains=goworkReplace,goworkVersion
|
||||||
syntax match goworkGo '^go .*$' transparent contains=goworkGo,goworkGoVersion
|
syntax match goworkGo '^go .*$' transparent contains=goworkGo,goworkGoVersion
|
||||||
|
|
||||||
@@ -47,11 +45,6 @@ highlight default link goworkReplaceOperator Operator
|
|||||||
syntax match goworkGoVersion "1\.\d\+" contained
|
syntax match goworkGoVersion "1\.\d\+" contained
|
||||||
highlight default link goworkGoVersion Identifier
|
highlight default link goworkGoVersion Identifier
|
||||||
|
|
||||||
|
|
||||||
" match paths in use directives
|
|
||||||
syntax match goworkPath "\f\+"
|
|
||||||
|
|
||||||
highlight default link goworkPath Identifier
|
|
||||||
" highlight versions:
|
" highlight versions:
|
||||||
" * vX.Y.Z-pre
|
" * vX.Y.Z-pre
|
||||||
" * vX.Y.Z
|
" * vX.Y.Z
|
||||||
|
|||||||
Reference in New Issue
Block a user