annotate runtime/syntax/trustees.vim @ 26151:5a1850512676 v8.2.3607

patch 8.2.3607: GTK3 screen updating is slow Commit: https://github.com/vim/vim/commit/9459b8d461d6f8345bfa3fb9b3b4297a7950b0bc Author: presuku <presuku@users.noreply.github.com> Date: Tue Nov 16 20:03:56 2021 +0000 patch 8.2.3607: GTK3 screen updating is slow Problem: GTK3 screen updating is slow. Solution: Remove some of the GTK3-specific code. (closes https://github.com/vim/vim/issues/9052)
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Nov 2021 21:15:02 +0100
parents 43efa4f5a8ea
children 1e9e9d89f0ee
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
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
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
8 finish
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
9 endif
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
10
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
11 syntax case match
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
12 syntax sync minlines=0 maxlines=0
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
13
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
14 " Errors & Comments
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
15 syntax match tfsError /.*/
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
16 highlight link tfsError Error
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
17 syntax keyword tfsSpecialComment TODO XXX FIXME contained
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
18 highlight link tfsSpecialComment Todo
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
19 syntax match tfsComment ~\s*#.*~ contains=tfsSpecialComment
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
20 highlight link tfsComment Comment
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
21
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
22 " Operators & Delimiters
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
23 highlight link tfsSpecialChar Operator
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
24 syntax match tfsSpecialChar ~[*!+]~ contained
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
25 highlight link tfsDelimiter Delimiter
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
26 syntax match tfsDelimiter ~:~ contained
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
27
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
28 " Trustees Rules - Part 1 of 3 - The Device
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
29 syntax region tfsRuleDevice matchgroup=tfsDeviceContainer start=~\[/~ end=~\]~ nextgroup=tfsRulePath oneline
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
30 highlight link tfsRuleDevice Label
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
31 highlight link tfsDeviceContainer PreProc
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
32
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
33 " Trustees Rules - Part 2 of 3 - The Path
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
34 syntax match tfsRulePath ~/[-_a-zA-Z0-9/]*~ nextgroup=tfsRuleACL contained contains=tfsDelimiter
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
35 highlight link tfsRulePath String
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
36
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
37 " Trustees Rules - Part 3 of 3 - The ACLs
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
38 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
39 syntax match tfsRuleWho ~\(\*\|[+]\{0,1\}[a-zA-Z0-9/]\+\)~ contained contains=tfsSpecialChar
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
40 highlight link tfsRuleWho Identifier
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
41 syntax match tfsRuleWhat ~[RWEBXODCU!]\+~ contained contains=tfsSpecialChar
917c4fda217f updated for version 7.0157
vimboss
parents:
diff changeset
42 highlight link tfsRuleWhat Structure