diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-18 08:30:40 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-18 15:49:08 +0800 |
commit | f0bd895995f8ef1a09fd942d6f8c3d096a6ac879 (patch) | |
tree | b6841540bb681d7b8b38f81d7dcbce0888f8d836 /runtime/lua/vim/_options.lua | |
parent | 9d315fb8b728355e8f1872f783b1ae9948e4fd9b (diff) | |
download | rneovim-f0bd895995f8ef1a09fd942d6f8c3d096a6ac879.tar.gz rneovim-f0bd895995f8ef1a09fd942d6f8c3d096a6ac879.tar.bz2 rneovim-f0bd895995f8ef1a09fd942d6f8c3d096a6ac879.zip |
vim-patch:3d46de703cf6
runtime(go): `goPackageComment` highlighting too broad
Previously this would highlight any comment before a line starting
`package`, for example
var (
// This comment would be highlighted as a goPackageComment
packages []string
)
The package clause is only valid when followed by a space[1], so include
this restriction
This is upstreaming a change from `go-vim`[2]
[1] https://go.dev/ref/spec#Package_clause
[2] https://github.com/fatih/vim-go/commit/d1c36cc4173093d0be78fd826978a024febe6233
https://github.com/vim/vim/commit/3d46de703cf645032fa4dbcd71259176db1b46b7
Co-authored-by: Matthew Hughes <matthewhughes934@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_options.lua')
0 files changed, 0 insertions, 0 deletions