From 505c19580e0f43fe5224431459cacb7c21edd93d Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Fri, 6 Apr 2012 15:14:11 +0200 Subject: Imported Upstream version 1 --- misc/vim/syntax/go.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'misc/vim/syntax') diff --git a/misc/vim/syntax/go.vim b/misc/vim/syntax/go.vim index 26d7defe3..1ce6cb27f 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,8 +67,8 @@ hi def link goLabel Label hi def link goRepeat Repeat " Predefined types -syn keyword goType chan map bool string -syn keyword goSignedInts int int8 int16 int32 int64 +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 syn keyword goComplexes complex64 complex128 @@ -85,7 +85,7 @@ syn match goType /\/ syn match goDeclaration /^func\>/ " Predefined functions and values -syn keyword goBuiltins append cap close complex copy imag len +syn keyword goBuiltins append cap close complex copy delete imag len syn keyword goBuiltins make new panic print println real recover syn keyword goConstants iota true false nil @@ -180,7 +180,6 @@ endif if go_highlight_extra_types != 0 syn match goExtraType /\/ syn match goExtraType /\/ - syn match goExtraType /\<\(os\.Error\)\>/ syn match goExtraType /\/ syn match goExtraType /\/ endif -- cgit v1.2.3