Skip to content

Commit dabb1a8

Browse files
committed
syntax/go.vim: Remove unnecessary containedin statement
1 parent e487b6e commit dabb1a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/go.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,13 @@ call s:HiConfig('goMapBrackets', ['go_highlight_map_brackets'])
477477
" Unfortunately limited to at most 3 nested type args
478478
syntax match goFuncCall /\v\K\k*\ze%(\(|\[\s*\n?%(,\n|[^\[\]]|\[\s*\n?%(,\n|[^\[\]]|\[[^\[\]]*\])*\])*\]\()/ contained nextgroup=goFuncCallTypeArgs,goFuncCallArgs
479479
syntax region goFuncCallTypeArgs matchgroup=goTypeParamBrackets start='\[' end='\]' contained contains=@goType,goUnderscore,goComma,goComment nextgroup=goFuncCallArgs
480-
syntax region goFuncCallArgs matchgroup=goFuncCallParens start='(' end=')' contained contains=@goExpr,goComment
480+
syntax region goFuncCallArgs matchgroup=goFuncCallParens start='(' end=')' contained contains=@goExpr,goComment,goArgSpread
481481

482482
syntax keyword goFuncDecl func skipwhite skipempty nextgroup=goFuncName,goMethodReceiver
483483
syntax keyword goFuncLiteral func contained skipwhite skipempty nextgroup=goFuncName,goFuncParams
484484

485485
syntax match goVariadic /\.\.\./ contained skipwhite nextgroup=@goType
486-
syntax match goArgSpread /\.\.\./ contained containedin=goFuncCallArgs
486+
syntax match goArgSpread /\.\.\./ contained
487487

488488
" TODO: Should this be "goParams" rather than "goParam"?
489489
syntax match goParam /\K\k*/ contained skipwhite skipempty nextgroup=goParamComma,goVariadic,@goType

0 commit comments

Comments
 (0)