mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:122d06858568
runtime(go): fix highlighting import string followed by some comment (vim/vim#14538)
122d068585
Co-authored-by: Linda_pp <rhysd@users.noreply.github.com>
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
" go.vim: Vim syntax file for Go.
|
" go.vim: Vim syntax file for Go.
|
||||||
" Language: Go
|
" Language: Go
|
||||||
" Maintainer: Billie Cleek <bhcleek@gmail.com>
|
" Maintainer: Billie Cleek <bhcleek@gmail.com>
|
||||||
" Latest Revision: 2024-03-17
|
" Latest Revision: 2024-04-13
|
||||||
" 2024-03-17: - fix goPackageComment highlight (by Vim Project)
|
" 2024-03-17: - fix goPackageComment highlight (by Vim Project)
|
||||||
" License: BSD-style. See LICENSE file in source repository.
|
" License: BSD-style. See LICENSE file in source repository.
|
||||||
" Repository: https://github.com/fatih/vim-go
|
" Repository: https://github.com/fatih/vim-go
|
||||||
@ -191,7 +191,7 @@ else
|
|||||||
syn region goRawString start=+`+ end=+`+
|
syn region goRawString start=+`+ end=+`+
|
||||||
endif
|
endif
|
||||||
|
|
||||||
syn match goImportString /^\%(\s\+\|import \)\(\h\w* \)\?\zs"[^"]\+"$/ contained containedin=goImport
|
syn match goImportString /^\%(\s\+\|import \)\(\h\w* \)\?\zs"[^"]\+"/ contained containedin=goImport
|
||||||
|
|
||||||
if s:HighlightFormatStrings()
|
if s:HighlightFormatStrings()
|
||||||
" [n] notation is valid for specifying explicit argument indexes
|
" [n] notation is valid for specifying explicit argument indexes
|
||||||
|
Reference in New Issue
Block a user