Skip to content

Commit 9049ae0

Browse files
committed
fix import string is not highlighted if some comment follows
1 parent 14eedf6 commit 9049ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/go.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ else
107107
syn region goRawString start=+`+ end=+`+
108108
endif
109109

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

112112
if go#config#HighlightFormatStrings()
113113
" [n] notation is valid for specifying explicit argument indexes

0 commit comments

Comments
 (0)