aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2011-11-01 21:47:07 -0400
committerRuss Cox <rsc@golang.org>2011-11-01 21:47:07 -0400
commit782fd1fc9883c962b1414621e4e177c30499a1bf (patch)
tree6a0eae629ac7e9895d6967826c6c4481c9b74216
parente4ae30f5f55b6b6ba2cb9a0c0e3b11d42dc162ee (diff)
downloadgo-782fd1fc9883c962b1414621e4e177c30499a1bf.tar.gz
go-782fd1fc9883c962b1414621e4e177c30499a1bf.zip
misc/vim: add error type.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5331046
-rw-r--r--misc/vim/syntax/go.vim5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/vim/syntax/go.vim b/misc/vim/syntax/go.vim
index 7c17534be7..1ce6cb27f7 100644
--- a/misc/vim/syntax/go.vim
+++ b/misc/vim/syntax/go.vim
@@ -18,7 +18,7 @@
" Highlights white space around the communications operator that don't follow
" the standard style.
" - go_highlight_extra_types
-" Highlights commonly used library types (os.Error, etc.).
+" Highlights commonly used library types (io.Reader, etc.).
" - go_highlight_space_tab_error
" Highlights instances of tabs following spaces.
" - go_highlight_trailing_whitespace_error
@@ -67,7 +67,7 @@ hi def link goLabel Label
hi def link goRepeat Repeat
" Predefined types
-syn keyword goType chan map bool string
+syn keyword goType chan map bool string error
syn keyword goSignedInts int int8 int16 int32 int64 rune
syn keyword goUnsignedInts byte uint uint8 uint16 uint32 uint64 uintptr
syn keyword goFloats float32 float64
@@ -180,7 +180,6 @@ endif
if go_highlight_extra_types != 0
syn match goExtraType /\<bytes\.\(Buffer\)\>/
syn match goExtraType /\<io\.\(Reader\|Writer\|ReadWriter\|ReadWriteCloser\)\>/
- syn match goExtraType /\<\(os\.Error\)\>/
syn match goExtraType /\<reflect\.\(Kind\|Type\|Value\)\>/
syn match goExtraType /\<unsafe\.Pointer\>/
endif