Skip to content

Commit

Permalink
fix import string is not highlighted if some comment follows
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Apr 12, 2024
1 parent 14eedf6 commit 9049ae0
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 9049ae0

Please sign in to comment.