[OCaml] Mobile-friendly clone of cgit.
1
{
2
"information_for_contributors":[
3
"This file has been converted from https://github.com/RedCMD/YAML-Syntax-Highlighter/blob/master/syntaxes/yaml.tmLanguage.json",
4
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
"Once accepted there, we are happy to receive an update request."
6
],
7
"version":"https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/c42cf86959ba238dc8a825bdd07bed6f5e97c978",
8
"name":"YAML Ain't Markup Language",
9
"scopeName":"source.yaml",
10
"patterns":[
11
{
12
"comment":"Default to YAML version 1.2",
13
"begin":"\\A",
14
"while":"^",
15
"patterns":[
16
{
17
"include":"source.yaml.1.2"
18
}
19
]
20
},
21
{
22
"comment":"Support legacy FrontMatter integration",
23
"//":"https://github.com/microsoft/vscode-markdown-tm-grammar/pull/162",
24
"begin":"(?<=^-{3,}\\s*+)\\G$",
25
"while":"^(?! {3,0}-{3,}[ \t]*+$|[ \t]*+\\.{3}$)",
26
"patterns":[
27
{
28
"include":"source.yaml.1.2"
29
}
30
]
31
},
32
{
33
"comment":"Basic version for embedding",
34
"include":"source.yaml.embedded"
35
}
36
],
37
"repository":{
38
"parity":{
39
"comment":"Yes... That is right. Due to the changes with \\x2028, \\x2029, \\x85 and 'tags'. This is all the code I was able to reuse between all YAML versions 1.3, 1.2, 1.1 and 1.0"
40
},
41
"block-map-key-single":{
42
"comment":"https://yaml.org/spec/1.2.2/#rule-c-single-quoted (BLOCK-KEY)",
43
"begin":"\\G'",
44
"end":"'(?!')",
45
"beginCaptures":{
46
"0":{
47
"name":"punctuation.definition.string.begin.yaml"
48
}
49
},
50
"endCaptures":{
51
"0":{
52
"name":"punctuation.definition.string.end.yaml"
53
}
54
},
55
"name":"meta.map.key.yaml string.quoted.single.yaml entity.name.tag.yaml",
56
"patterns":[
57
{
58
"match":".[\t ]*+$",
59
"name":"invalid.illegal.multiline-key.yaml"
60
},
61
{
62
"match":"[^\t -\\x{10FFFF}]++",
63
"name":"invalid.illegal.character.yaml"
64
},
65
{
66
"match":"''",
67
"name":"constant.character.escape.single-quote.yaml"
68
}
69
]
70
},
71
"key-single":{
72
"comment":"https://yaml.org/spec/1.2.2/#rule-c-single-quoted (FLOW-OUT)",
73
"begin":"'",
74
"end":"'(?!')",
75
"beginCaptures":{
76
"0":{
77
"name":"punctuation.definition.string.begin.yaml"
78
}
79
},
80
"endCaptures":{
81
"0":{
82
"name":"punctuation.definition.string.end.yaml"
83
}
84
},
85
"name":"meta.map.key.yaml string.quoted.single.yaml entity.name.tag.yaml",
86
"patterns":[
87
{
88
"match":"[^\r\n\t -\\x{10FFFF}]++",
89
"name":"invalid.illegal.character.yaml"
90
},
91
{
92
"match":"''",
93
"name":"constant.character.escape.single-quote.yaml"
94
}
95
]
96
},
97
"non-printable":{
98
"//":{
99
"85":"
",
100
"2028":"",
101
"2029":"",
102
"10000":"𐀀",
103
"A0":" ",
104
"D7FF":"",
105
"E000":"",
106
"FFFD":"�",
107
"FEFF":"",
108
"FFFF":"",
109
"10FFFF":""
110
},
111
"//match":"[\\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}&&[^\t\n\r\\x{85}]]++",
112
"match":"[^\t\n\r -~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}]++",
113
"name":"invalid.illegal.non-printable.yaml"
114
}
115
}
116
}