From 9049ae085ed2f822c377e8caaa96b0d02859470d Mon Sep 17 00:00:00 2001 From: rhysd Date: Fri, 12 Apr 2024 21:49:19 +0900 Subject: [PATCH] fix import string is not highlighted if some comment follows --- syntax/go.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/go.vim b/syntax/go.vim index 7e71f0033d..591b94fd39 100644 --- a/syntax/go.vim +++ b/syntax/go.vim @@ -107,7 +107,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 go#config#HighlightFormatStrings() " [n] notation is valid for specifying explicit argument indexes