annotate runtime/syntax/rnc.vim @ 23933:0ce2f119c5b9

Added tag v8.2.2508 for changeset 4549133c1e773eaa24801fb10fec7ebeed3a09d5
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Feb 2021 18:30:04 +0100
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
2 " Language: Relax NG compact syntax
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1620
diff changeset
4 " Latest Revision: 2007-06-17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
12
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 839
diff changeset
13 setlocal iskeyword+=-,.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
15 syn keyword rncTodo contained TODO FIXME XXX NOTE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
17 syn region rncComment display oneline start='^\s*#' end='$'
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
18 \ contains=rncTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20 syn match rncOperator display '[-|,&+?*~]'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
21 syn match rncOperator display '\%(|&\)\=='
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 syn match rncOperator display '>>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24 syn match rncNamespace display '\<\k\+:'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
26 syn match rncQuoted display '\\\k\+\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 syn match rncSpecial display '\\x{\x\+}'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30 syn region rncAnnotation transparent start='\[' end='\]'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 \ contains=ALLBUT,rncComment,rncTodo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
33 syn region rncLiteral display oneline start=+"+ end=+"+
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 \ contains=rncSpecial
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
35 syn region rncLiteral display oneline start=+'+ end=+'+
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
36 syn region rncLiteral display oneline start=+"""+ end=+"""+
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
37 \ contains=rncSpecial
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
38 syn region rncLiteral display oneline start=+'''+ end=+'''+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
40 syn match rncDelimiter display '[{},()]'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
42 syn keyword rncKeyword datatypes default div empty external grammar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
43 syn keyword rncKeyword include inherit list mixed name namespace
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
44 syn keyword rncKeyword notAllowed parent start string text token
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
46 syn match rncIdentifier display '\k\+\_s*\%(=\|&=\||=\)\@='
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
47 \ nextgroup=rncOperator
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
48 syn keyword rncKeyword element attribute
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
49 \ nextgroup=rncIdName skipwhite skipempty
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
50 syn match rncIdName contained '\k\+'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
52 hi def link rncTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
53 hi def link rncComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
54 hi def link rncOperator Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
55 hi def link rncNamespace Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
56 hi def link rncQuoted Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
57 hi def link rncSpecial SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
58 hi def link rncAnnotation Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
59 hi def link rncLiteral String
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
60 hi def link rncDelimiter Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
61 hi def link rncKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
62 hi def link rncIdentifier Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
63 hi def link rncIdName Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let b:current_syntax = "rnc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
67 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
68 unlet s:cpo_save