Skip to content

Commit

Permalink
Merge pull request #3657 from rhysd/issue-3656
Browse files Browse the repository at this point in the history
Fix highlighting import string followed by some comment
  • Loading branch information
bhcleek committed Apr 13, 2024
2 parents 14eedf6 + 9049ae0 commit feef9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit feef9b3

Please sign in to comment.