Mercurial > vim
changeset 34906:cb75f6489b63
runtime(go): fix highlighting import string followed by some comment (#14538)
Commit: https://github.com/vim/vim/commit/122d068585686babd63f0b729759ec269171d464
Author: Linda_pp <rhysd@users.noreply.github.com>
Date: Sun Apr 14 00:56:17 2024 +0900
runtime(go): fix highlighting import string followed by some comment (https://github.com/vim/vim/issues/14538)
Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 13 Apr 2024 18:00:07 +0200 |
parents | 78b45ac7f141 |
children | 8c9e43278b2c |
files | runtime/syntax/go.vim |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/syntax/go.vim +++ b/runtime/syntax/go.vim @@ -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