annotate runtime/syntax/trustees.vim @ 7246:a69b5e4beefd v7.4.931

commit https://github.com/vim/vim/commit/cfcd1ddd103129b309671cba5cff55e19a9908e4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 21 14:24:50 2015 +0100 patch 7.4.931 Problem: Test 94 fails on some systems. Solution: Set 'encoding' to utf-8.
author Christian Brabandt <cb@256bit.org>
date Sat, 21 Nov 2015 14:30:04 +0100
parents 917c4fda217f
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
554
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
1 " Vim syntax file
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
2 " Language: trustees
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
3 " Maintainer: Nima Talebi <nima@it.net.au>
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
4 " Last Change: 2005-10-12
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
5
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
6 if version < 600
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
7 syntax clear
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
8 elseif exists("b:current_syntax")
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
9 finish
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
10 endif
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
11
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
12 syntax case match
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
13 syntax sync minlines=0 maxlines=0
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
14
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
15 " Errors & Comments
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
16 syntax match tfsError /.*/
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
17 highlight link tfsError Error
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
18 syntax keyword tfsSpecialComment TODO XXX FIXME contained
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
19 highlight link tfsSpecialComment Todo
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
20 syntax match tfsComment ~\s*#.*~ contains=tfsSpecialComment
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
21 highlight link tfsComment Comment
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
22
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
23 " Operators & Delimiters
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
24 highlight link tfsSpecialChar Operator
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
25 syntax match tfsSpecialChar ~[*!+]~ contained
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
26 highlight link tfsDelimiter Delimiter
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
27 syntax match tfsDelimiter ~:~ contained
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
28
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
29 " Trustees Rules - Part 1 of 3 - The Device
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
30 syntax region tfsRuleDevice matchgroup=tfsDeviceContainer start=~\[/~ end=~\]~ nextgroup=tfsRulePath oneline
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
31 highlight link tfsRuleDevice Label
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
32 highlight link tfsDeviceContainer PreProc
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
33
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
34 " Trustees Rules - Part 2 of 3 - The Path
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
35 syntax match tfsRulePath ~/[-_a-zA-Z0-9/]*~ nextgroup=tfsRuleACL contained contains=tfsDelimiter
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
36 highlight link tfsRulePath String
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
37
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
38 " Trustees Rules - Part 3 of 3 - The ACLs
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
39 syntax match tfsRuleACL ~\(:\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\):[RWEBXODCU!]\+\)\+$~ contained contains=tfsDelimiter,tfsRuleWho,tfsRuleWhat
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
40 syntax match tfsRuleWho ~\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\)~ contained contains=tfsSpecialChar
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
41 highlight link tfsRuleWho Identifier
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
42 syntax match tfsRuleWhat ~[RWEBXODCU!]\+~ contained contains=tfsSpecialChar
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
43 highlight link tfsRuleWhat Structure