Mercurial > vim
annotate runtime/syntax/trustees.vim @ 16459:4ea761ce795b v8.1.1234
patch 8.1.1234: swap file test fails on MS-Windows
commit https://github.com/vim/vim/commit/701df4eb64ae9945c63f83621b54aa69e1336a79
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 28 23:07:18 2019 +0200
patch 8.1.1234: swap file test fails on MS-Windows
Problem: Swap file test fails on MS-Windows.
Solution: Only compare the tail of the file names.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Apr 2019 23:15:07 +0200 |
parents | 43efa4f5a8ea |
children | 1e9e9d89f0ee |
rev | line source |
---|---|
554 | 1 " Vim syntax file |
2 " Language: trustees | |
3 " Maintainer: Nima Talebi <nima@it.net.au> | |
4 " Last Change: 2005-10-12 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
554
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
554
diff
changeset
|
7 if exists("b:current_syntax") |
554 | 8 finish |
9 endif | |
10 | |
11 syntax case match | |
12 syntax sync minlines=0 maxlines=0 | |
13 | |
14 " Errors & Comments | |
15 syntax match tfsError /.*/ | |
16 highlight link tfsError Error | |
17 syntax keyword tfsSpecialComment TODO XXX FIXME contained | |
18 highlight link tfsSpecialComment Todo | |
19 syntax match tfsComment ~\s*#.*~ contains=tfsSpecialComment | |
20 highlight link tfsComment Comment | |
21 | |
22 " Operators & Delimiters | |
23 highlight link tfsSpecialChar Operator | |
24 syntax match tfsSpecialChar ~[*!+]~ contained | |
25 highlight link tfsDelimiter Delimiter | |
26 syntax match tfsDelimiter ~:~ contained | |
27 | |
28 " Trustees Rules - Part 1 of 3 - The Device | |
29 syntax region tfsRuleDevice matchgroup=tfsDeviceContainer start=~\[/~ end=~\]~ nextgroup=tfsRulePath oneline | |
30 highlight link tfsRuleDevice Label | |
31 highlight link tfsDeviceContainer PreProc | |
32 | |
33 " Trustees Rules - Part 2 of 3 - The Path | |
34 syntax match tfsRulePath ~/[-_a-zA-Z0-9/]*~ nextgroup=tfsRuleACL contained contains=tfsDelimiter | |
35 highlight link tfsRulePath String | |
36 | |
37 " Trustees Rules - Part 3 of 3 - The ACLs | |
38 syntax match tfsRuleACL ~\(:\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\):[RWEBXODCU!]\+\)\+$~ contained contains=tfsDelimiter,tfsRuleWho,tfsRuleWhat | |
39 syntax match tfsRuleWho ~\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\)~ contained contains=tfsSpecialChar | |
40 highlight link tfsRuleWho Identifier | |
41 syntax match tfsRuleWhat ~[RWEBXODCU!]\+~ contained contains=tfsSpecialChar | |
42 highlight link tfsRuleWhat Structure |