annotate runtime/syntax/gitolite.vim @ 19421:208644ebdff8 v8.2.0268

patch 8.2.0268: trycatch test fails Commit: https://github.com/vim/vim/commit/40d9da2a4395025169ebaf53a63618adfa737e96 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 17 10:01:24 2020 +0100 patch 8.2.0268: trycatch test fails Problem: Trycatch test fails. Solution: When calling function fails only check for following command, do not give another error.
author Bram Moolenaar <Bram@vim.org>
date Mon, 17 Feb 2020 10:15:04 +0100
parents 3b26420fc639
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: gitolite configuration
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
3 " URL: https://github.com/sitaramc/gitolite/blob/master/contrib/vim/syntax/gitolite.vim
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
4 " (https://raw.githubusercontent.com/sitaramc/gitolite/master/contrib/vim/syntax/gitolite.vim)
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
5 " Maintainer: Sitaram Chamarty <sitaramc@gmail.com>
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
6 " (former Maintainer: Teemu Matilainen <teemu.matilainen@iki.fi>)
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
7 " Last Change: 2017 Oct 05
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 if exists("b:current_syntax")
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 finish
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 endif
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
13 let s:cpo_save = &cpo
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
14 set cpo&vim
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
15
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
16 " this seems to be the best way, for now.
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
17 syntax sync fromstart
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
18
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
19 " ---- common stuff
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
20
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
21 syn match gitoliteGroup '@\S\+'
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
23 syn match gitoliteComment '#.*' contains=gitoliteTodo
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
24 syn keyword gitoliteTodo TODO FIXME XXX NOT contained
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
26 " ---- main section
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
27
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
28 " catch template-data syntax appearing outside template-data section
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
29 syn match gitoliteRepoError '^\s*repo.*='
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
30 syn match gitoliteRepoError '^\s*\S\+\s*=' " this gets overridden later when first word is a perm, don't worry
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
32 " normal gitolite group and repo lines
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
33 syn match gitoliteGroupLine '^\s*@\S\+\s*=\s*\S.*$' contains=gitoliteGroup,gitoliteComment
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
34 syn match gitoliteRepoLine '^\s*repo\s\+[^=]*$' contains=gitoliteRepo,gitoliteGroup,gitoliteComment
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
35 syn keyword gitoliteRepo repo contained
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
37 syn keyword gitoliteSpecialRepo CREATOR
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
39 " normal gitolite rule lines
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
40 syn match gitoliteRuleLine '^\s*\(-\|C\|R\|RW+\?C\?D\?\)\s[^#]*' contains=gitoliteRule,gitoliteCreateRule,gitoliteDenyRule,gitoliteRefex,gitoliteUsers,gitoliteGroup
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
41 syn match gitoliteRule '\(^\s*\)\@<=\(-\|C\|R\|RW+\?C\?D\?\)\s\@=' contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
42 syn match gitoliteRefex '\(^\s*\(-\|R\|RW+\?C\?D\?\)\s\+\)\@<=\S.\{-}\(\s*=\)\@=' contains=gitoliteSpecialRefex
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
43 syn match gitoliteSpecialRefex 'NAME/'
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
44 syn match gitoliteSpecialRefex '/USER/'
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
45 syn match gitoliteCreateRule '\(^\s*C\s.*=\s*\)\@<=\S[^#]*[^# ]' contained contains=gitoliteGroup
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
46 syn match gitoliteDenyRule '\(^\s*-\s.*=\s*\)\@<=\S[^#]*[^# ]' contained
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
48 " normal gitolite config (and similar) lines
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
49 syn match gitoliteConfigLine '^\s*\(config\|option\|include\|subconf\)\s[^#]*' contains=gitoliteConfigKW,gitoliteConfigKey,gitoliteConfigVal,gitoliteComment
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
50 syn keyword gitoliteConfigKW config option include subconf contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
51 syn match gitoliteConfigKey '\(\(config\|option\)\s\+\)\@<=[^ =]*' contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
52 syn match gitoliteConfigVal '\(=\s*\)\@<=\S.*' contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
53
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
54 " ---- template-data section
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
56 syn region gitoliteTemplateLine matchgroup=PreProc start='^=begin template-data$' end='^=end$' contains=gitoliteTplRepoLine,gitoliteTplRoleLine,gitoliteGroup,gitoliteComment,gitoliteTplError
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
58 syn match gitoliteTplRepoLine '^\s*repo\s\+\S.*=.*' contained contains=gitoliteTplRepo,gitoliteTplTemplates,gitoliteGroup
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
59 syn keyword gitoliteTplRepo repo contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
60 syn match gitoliteTplTemplates '\(=\s*\)\@<=\S.*' contained contains=gitoliteGroup,gitoliteComment
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
62 syn match gitoliteTplRoleLine '^\s*\S\+\s*=\s*.*' contained contains=gitoliteTplRole,gitoliteGroup,gitoliteComment
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
63 syn match gitoliteTplRole '\S\+\s*='he=e-1 contained
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64
12756
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
65 " catch normal gitolite rules appearing in template-data section
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
66 syn match gitoliteTplError '^\s*repo[^=]*$' contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
67 syn match gitoliteTplError '^\s*\(-\|R\|RW+\?C\?D\?\)\s'he=e-1 contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
68 syn match gitoliteTplError '^\s*\(config\|option\|include\|subconf\)\s'he=e-1 contained
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
69 syn match gitoliteTplError '^\s*@\S\+\s*=' contained contains=NONE
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
70
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
71 hi def link gitoliteGroup Identifier
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
72 hi def link gitoliteComment Comment
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
73 hi def link gitoliteTodo ToDo
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
74 hi def link gitoliteRepoError Error
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
75 hi def link gitoliteGroupLine PreProc
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
76 hi def link gitoliteRepo Keyword
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
77 hi def link gitoliteSpecialRepo PreProc
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
78 hi def link gitoliteRule Keyword
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
79 hi def link gitoliteCreateRule PreProc
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
80 hi def link gitoliteDenyRule WarningMsg
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
81 hi def link gitoliteRefex Constant
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
82 hi def link gitoliteSpecialRefex PreProc
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
83 hi def link gitoliteConfigKW Keyword
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
84 hi def link gitoliteConfigKey Identifier
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
85 hi def link gitoliteConfigVal String
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
86 hi def link gitoliteTplRepo Keyword
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
87 hi def link gitoliteTplTemplates Constant
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
88 hi def link gitoliteTplRole Constant
3b26420fc639 Long overdue runtime update.
Christian Brabandt <cb@256bit.org>
parents: 3237
diff changeset
89 hi def link gitoliteTplError Error
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 let b:current_syntax = "gitolite"
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
92
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
93 let &cpo = s:cpo_save
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3224
diff changeset
94 unlet s:cpo_save