Compare commits

..

2 Commits

Author SHA1 Message Date
Adam Stankiewicz
f061eddb7c Update README.md
Some checks failed
Vim Polyglot CI / test (push) Has been cancelled
2025-08-27 19:10:22 +02:00
Haim
f5393cfee0 Update README.md (#861)
Some checks failed
Vim Polyglot CI / test (push) Has been cancelled
Fix parenthesis missing, thus logo was not showing up
2024-12-04 23:22:43 +01:00
2 changed files with 11 additions and 8 deletions

View File

@@ -1,8 +1,4 @@
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
![vim-polyglot](https://i.imgur.com/9RxQK6k.png)
A collection of language packs for Vim.

View File

@@ -16,11 +16,13 @@ syntax case match
" match keywords
syntax keyword goworkGo go contained
syntax keyword goworkUse use
syntax keyword goworkUse use
syntax keyword goworkExclude exclude
syntax keyword goworkReplace replace
syntax keyword goworkRetract retract
" use, exclude, replace, and go can be also grouped into block
syntax region goworkUse start='use (' end=')' transparent contains=goworkUse
" require, exclude, replace, and go can be also grouped into block
syntax region goworkUse start='require (' end=')' transparent contains=goworkUse,goworkPath
syntax region goworkReplace start='replace (' end=')' transparent contains=goworkReplace,goworkVersion
syntax match goworkGo '^go .*$' transparent contains=goworkGo,goworkGoVersion
@@ -45,6 +47,11 @@ 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