annotate runtime/syntax/udevperm.vim @ 7030:8d513ddfe3ec v7.4.828

commit https://github.com/vim/vim/commit/670acbc70f371409b46b722bd9a1166e53574f42 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 25 11:58:36 2015 +0200 patch 7.4.828 Problem: Crash when using "syn keyword x c". (Dominique Pelle) Solution: Initialize the keyword tabble. (Raymond Ko, PR 397)
author Christian Brabandt <cb@256bit.org>
date Tue, 25 Aug 2015 17:20:24 +0200
parents 1f3b1021f002
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: udev(8) permissions file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn match udevpermBegin display '^' nextgroup=udevpermDevice
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 syn match udevpermDevice contained display '[^:]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ contains=udevpermPattern
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17 \ nextgroup=udevpermUserColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 syn match udevpermPattern contained '[*?]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 syn region udevpermPattern contained start='\[!\=' end='\]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 \ contains=udevpermPatRange
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 syn match udevpermPatRange contained '[^[-]-[^]-]'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 syn match udevpermUserColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 \ nextgroup=udevpermUser
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28 syn match udevpermUser contained display '[^:]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 \ nextgroup=udevpermGroupColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 syn match udevpermGroupColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 \ nextgroup=udevpermGroup
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 syn match udevpermGroup contained display '[^:]\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 \ nextgroup=udevpermPermColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 syn match udevpermPermColon contained display ':'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 \ nextgroup=udevpermPerm
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 syn match udevpermPerm contained display '\<0\=\o\+\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 \ contains=udevpermOctalZero
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 syn match udevpermOctalZero contained display '\<0'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 syn match udevpermOctalError contained display '\<0\o*[89]\d*\>'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 syn keyword udevpermTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 syn region udevpermComment display oneline start='^\s*#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49 \ contains=udevpermTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 hi def link udevpermTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 hi def link udevpermComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 hi def link udevpermDevice String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54 hi def link udevpermPattern SpecialChar
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55 hi def link udevpermPatRange udevpermPattern
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56 hi def link udevpermColon Normal
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57 hi def link udevpermUserColon udevpermColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58 hi def link udevpermUser Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 hi def link udevpermGroupColon udevpermColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60 hi def link udevpermGroup Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61 hi def link udevpermPermColon udevpermColon
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62 hi def link udevpermPerm Number
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63 hi def link udevpermOctalZero PreProc
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64 hi def link udevpermOctalError Error
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 let b:current_syntax = "udevperm"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69 unlet s:cpo_save