annotate runtime/syntax/rnc.vim @ 31479:0c0b78aa7ae3 v9.0.1072

patch 9.0.1072: screenpos() column result in fold may be too small Commit: https://github.com/vim/vim/commit/ba2d19193201277397c25c1f5a134ea042542555 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Dec 18 12:28:59 2022 +0000 patch 9.0.1072: screenpos() column result in fold may be too small Problem: screenpos() column result in fold may be too small. Solution: Add space of 'number', sign column, etc. (closes https://github.com/vim/vim/issues/11715)
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Dec 2022 13:30:05 +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