summaryrefslogtreecommitdiffstats
path: root/syntax/godoc.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:42:37 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:42:37 +0200
commit5dd1a7e83966c92d220073185f1738dfe441f59e (patch)
tree9c4bee389a51a9bb111dcc894c9db0f6d1809d81 /syntax/godoc.vim
parentbc098370c1bb81840734f5764f431dee270e75ce (diff)
downloadvim-polyglot-5dd1a7e83966c92d220073185f1738dfe441f59e.tar.gz
vim-polyglot-5dd1a7e83966c92d220073185f1738dfe441f59e.zip
Update
Diffstat (limited to 'syntax/godoc.vim')
-rw-r--r--syntax/godoc.vim51
1 files changed, 0 insertions, 51 deletions
diff --git a/syntax/godoc.vim b/syntax/godoc.vim
deleted file mode 100644
index 7fdd8337..00000000
--- a/syntax/godoc.vim
+++ /dev/null
@@ -1,51 +0,0 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
-
-" Copyright 2011 The Go Authors. All rights reserved.
-" Use of this source code is governed by a BSD-style
-" license that can be found in the LICENSE file.
-
-if exists("b:current_syntax")
- finish
-endif
-
-syn case match
-
-syn match godocTitle "^\([A-Z][A-Z ]*\)$"
-hi def link godocTitle Title
-
-" Single Line Definitions
-syn match godocMethodRec /\i\+\ze)/ contained
-syn match godocMethodName /) \zs\i\+\ze(/ contained
-syn match godocMethod /^func \((\i\+ [^)]*)\) \i\+(/ contains=godocMethodRec,godocMethodName
-syn match godocFunction /^func \zs\i\+\ze(/
-
-syn match godocType /^type \zs\i\+\ze.*/
-syn match godocVar /^var \zs\i\+\ze.*/
-syn match godocConst /^const \zs\i\+\ze.*/
-
-hi def link godocMethodRec Type
-hi def link godocType Type
-hi def link godocMethodName Function
-hi def link godocFunction Function
-hi def link godocVar Identifier
-hi def link godocConst Identifier
-
-" Definition Blocks
-syn region godocComment start="/\*" end="\*/" contained
-syn region godocComment start="//" end="$" contained
-syn match godocDefinition /^\s\+\i\+/ contained
-
-syn region godocVarBlock start=/^var (/ end=/^)/ contains=godocComment,godocDefinition
-syn region godocConstBlock start=/^const (/ end=/^)/ contains=godocComment,godocDefinition
-syn region godocTypeBlock start=/^type \i\+ \(interface\|struct\) {/ end=/^}/ matchgroup=godocType contains=godocComment,godocType
-
-hi def link godocComment Comment
-hi def link godocDefinition Identifier
-
-syn sync minlines=500
-
-let b:current_syntax = "godoc"
-
-" vim:ts=4 sts=2 sw=2:
-
-endif