annotate runtime/syntax/udevperm.vim @ 21604:d9c45474cac1 v8.2.1352

patch 8.2.1352: Vim9: no error for shadowing a script-local function Commit: https://github.com/vim/vim/commit/ad486a0f0dd194826fdb733516bf0f35382c9dd7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 1 23:22:18 2020 +0200 patch 8.2.1352: Vim9: no error for shadowing a script-local function Problem: Vim9: no error for shadowing a script-local function by a nested function. Solution: Check for script-local function. (closes #6586)
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Aug 2020 23:30:03 +0200
parents 1218c5353e2b
children
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
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: udev(8) permissions file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
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