Skip to content

Commit 122d068

Browse files
authored
runtime(go): fix highlighting import string followed by some comment (#14538)
Signed-off-by: rhysd <lin90162@yahoo.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 1f5175d commit 122d068

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/syntax/go.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
" go.vim: Vim syntax file for Go.
66
" Language: Go
77
" Maintainer: Billie Cleek <bhcleek@gmail.com>
8-
" Latest Revision: 2024-03-17
8+
" Latest Revision: 2024-04-13
99
" 2024-03-17: - fix goPackageComment highlight (by Vim Project)
1010
" License: BSD-style. See LICENSE file in source repository.
1111
" Repository: https://github.com/fatih/vim-go
@@ -191,7 +191,7 @@ else
191191
syn region goRawString start=+`+ end=+`+
192192
endif
193193

194-
syn match goImportString /^\%(\s\+\|import \)\(\h\w* \)\?\zs"[^"]\+"$/ contained containedin=goImport
194+
syn match goImportString /^\%(\s\+\|import \)\(\h\w* \)\?\zs"[^"]\+"/ contained containedin=goImport
195195

196196
if s:HighlightFormatStrings()
197197
" [n] notation is valid for specifying explicit argument indexes

0 commit comments

Comments
 (0)