Compare commits

..

2 Commits

Author SHA1 Message Date
Artyom Andreev
a82205f7fc Merge 98665c0764 into bc8a81d359 2022-10-28 16:47:41 +00:00
Artyom Andreev
98665c0764 fix go work syntax having wrong highlighting entirely 2022-10-28 19:47:19 +03:00
2 changed files with 9 additions and 10 deletions

View File

@@ -1,5 +1,11 @@
This is my top-starred repository on Github, so I've decided to put this ad here:
If you work for big corp and seek consulting, please visit following repository: https://github.com/sheerun/consultation
![vim-polyglot](https://i.imgur.com/9RxQK6k.png)
[![build](https://github.com/sheerun/vim-polyglot/workflows/Vim%20Polyglot%20CI/badge.svg)](https://github.com/sheerun/vim-polyglot/actions) [![Maintenance](https://img.shields.io/badge/maintained%20since-2013-yes)]()
A collection of language packs for Vim.
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.

View File

@@ -16,13 +16,11 @@ syntax case match
" match keywords
syntax keyword goworkGo go contained
syntax keyword goworkUse use
syntax keyword goworkExclude exclude
syntax keyword goworkUse use
syntax keyword goworkReplace replace
syntax keyword goworkRetract retract
" require, exclude, replace, and go can be also grouped into block
syntax region goworkUse start='require (' end=')' transparent contains=goworkUse,goworkPath
" use, exclude, replace, and go can be also grouped into block
syntax region goworkUse start='use (' end=')' transparent contains=goworkUse
syntax region goworkReplace start='replace (' end=')' transparent contains=goworkReplace,goworkVersion
syntax match goworkGo '^go .*$' transparent contains=goworkGo,goworkGoVersion
@@ -47,11 +45,6 @@ highlight default link goworkReplaceOperator Operator
syntax match goworkGoVersion "1\.\d\+" contained
highlight default link goworkGoVersion Identifier
" match paths in use directives
syntax match goworkPath "\f\+"
highlight default link goworkPath Identifier
" highlight versions:
" * vX.Y.Z-pre
" * vX.Y.Z