Skip to content

Commit

Permalink
Merge pull request #1903 from khrt/syn-context
Browse files Browse the repository at this point in the history
Highlight context.Context
  • Loading branch information
bhcleek authored Aug 6, 2018
2 parents a6e62dc + c10654d commit 6319d40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syntax/go.vim
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ endif
" Extra types commonly seen
if go#config#HighlightExtraTypes()
syn match goExtraType /\<bytes\.\(Buffer\)\>/
syn match goExtraType /\<context\.\(Context\)\>/
syn match goExtraType /\<io\.\(Reader\|ReadSeeker\|ReadWriter\|ReadCloser\|ReadWriteCloser\|Writer\|WriteCloser\|Seeker\)\>/
syn match goExtraType /\<reflect\.\(Kind\|Type\|Value\)\>/
syn match goExtraType /\<unsafe\.Pointer\>/
Expand Down

0 comments on commit 6319d40

Please sign in to comment.