]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(go): fix highlighting import string followed by some comment (#14538)
authorLinda_pp <rhysd@users.noreply.github.com>
Sat, 13 Apr 2024 15:56:17 +0000 (00:56 +0900)
committerGitHub <noreply@github.com>
Sat, 13 Apr 2024 15:56:17 +0000 (17:56 +0200)
Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/go.vim

index 8685867c2720bec4996e2a8e47664875c7da74fd..feed9646fba8db834a291d6c078f88717b2585f5 100644 (file)
@@ -5,7 +5,7 @@
 " go.vim: Vim syntax file for Go.
 " Language:             Go
 " 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)
 " License:              BSD-style. See LICENSE file in source repository.
 " Repository:           https://github.com/fatih/vim-go
@@ -191,7 +191,7 @@ else
   syn region      goRawString         start=+`+ end=+`+
 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()
   " [n] notation is valid for specifying explicit argument indexes