Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
782fd1fc
Commit
782fd1fc
authored
Nov 01, 2011
by
David Symonds
Committed by
Russ Cox
Nov 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/vim: add error type.
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5331046
parent
e4ae30f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
misc/vim/syntax/go.vim
misc/vim/syntax/go.vim
+2
-3
No files found.
misc/vim/syntax/go.vim
View file @
782fd1fc
...
...
@@ -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.Erro
r, etc.).
" Highlights commonly used library types (
io.Reade
r, 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment