summaryrefslogtreecommitdiff
path: root/context/data/vscode/extensions/context/syntaxes/context-syntax-xml.json
blob: 945647169e6b9f531f5c4a965e8de42c0b25c828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
 "name" : "context.xml",
 "patterns" : [
  {
   "include" : "#comment"
  },
  {
   "include" : "#cdata"
  },
  {
   "include" : "#instruction_xml"
  },
  {
   "include" : "#instruction_lua"
  },
  {
   "include" : "#instruction"
  },
  {
   "include" : "#close"
  },
  {
   "include" : "#open"
  },
  {
   "include" : "#element_error"
  },
  {
   "include" : "#entity"
  }
 ],
 "repository" : {
  "attribute_double" : {
   "captures" : {
    "1" : {
     "name" : "context.plain.attribute.double.namespace.xml"
    },
    "2" : {
     "name" : "context.constant.attribute.double.name.xml"
    },
    "3" : {
     "name" : "context.special.attribute.double.open.xml"
    },
    "4" : {
     "name" : "context.string.attribute.double.text.xml"
    },
    "5" : {
     "name" : "context.special.attribute.double.close.xml"
    }
   },
   "match" : "((?:[-\u005Cw.]+:)?)([-\u005Cw.:]+)\u005Cs*=\u005Cs*(\u0022)((?:\u005C\u005C\u0022|[^\u0022])*)(\u0022)"
  },
  "attribute_single" : {
   "captures" : {
    "1" : {
     "name" : "context.plain.attribute.single.namespace.xml"
    },
    "2" : {
     "name" : "context.constant.attribute.single.name.xml"
    },
    "3" : {
     "name" : "context.special.attribute.single.open.xml"
    },
    "4" : {
     "name" : "context.string.attribute.single.text.xml"
    },
    "5" : {
     "name" : "context.special.attribute.single.close.xml"
    }
   },
   "match" : "((?:[-\u005Cw.]+:)?)([-\u005Cw.:]+)\u005Cs*=\u005Cs*(')((?:\u005C\u005C'|[^'])*)(')"
  },
  "attributes" : {
   "patterns" : [
    {
     "include" : "#attribute_double"
    },
    {
     "include" : "#attribute_single"
    }
   ]
  },
  "cdata" : {
   "begin" : "<!\u005C[CDATA\u005C[",
   "beginCaptures" : {
    "0" : {
     "name" : "context.command.cdata.open.xml"
    }
   },
   "end" : "]]>",
   "endCaptures" : {
    "0" : {
     "name" : "context.command.cdata.close.xml"
    }
   },
   "name" : "context.default.cdata.text.xml"
  },
  "close" : {
   "captures" : {
    "1" : {
     "name" : "context.keyword.close.open.xml"
    },
    "2" : {
     "name" : "context.plain.close.namespace.xml"
    },
    "3" : {
     "name" : "context.keyword.close.name.xml"
    },
    "4" : {
     "name" : "context.keyword.close.close.xml"
    }
   },
   "match" : "(</)((?:[-\u005Cw.]+:)?)([-\u005Cw.:]+)\u005Cs*(>)"
  },
  "comment" : {
   "begin" : "<!--",
   "beginCaptures" : {
    "0" : {
     "name" : "context.command.comment.open.xml"
    }
   },
   "end" : "-->",
   "endCaptures" : {
    "0" : {
     "name" : "context.command.comment.close.xml"
    }
   },
   "name" : "context.comment.comment.text.xml"
  },
  "element_error" : {
   "match" : "<?:([^>]*)>",
   "name" : "context.error.error.xml"
  },
  "entity" : {
   "match" : "&.*?;",
   "name" : "context.constant.entity.xml"
  },
  "instruction" : {
   "begin" : "<\u005C?[-\u005Cw.:]+",
   "beginCaptures" : {
    "0" : {
     "name" : "context.command.instruction.open.xml"
    }
   },
   "end" : "\u005C?>",
   "endCaptures" : {
    "0" : {
     "name" : "context.command.instruction.close.xml"
    }
   },
   "name" : "context.default.instruction.text.xml"
  },
  "instruction_lua" : {
   "begin" : "<\u005C?lua",
   "beginCaptures" : {
    "0" : {
     "name" : "context.command.instruction.lua.open.xml"
    }
   },
   "end" : "\u005C?>",
   "endCaptures" : {
    "0" : {
     "name" : "context.command.instruction.lua.close.xml"
    }
   },
   "patterns" : [
    {
     "include" : "source.context.cld"
    }
   ]
  },
  "instruction_xml" : {
   "begin" : "<\u005C?xml",
   "beginCaptures" : {
    "0" : {
     "name" : "context.command.instruction.xml.open.xml"
    }
   },
   "end" : "\u005C?>",
   "endCaptures" : {
    "0" : {
     "name" : "context.command.instruction.xml.close.xml"
    }
   },
   "patterns" : [
    {
     "include" : "#attributes"
    }
   ]
  },
  "open" : {
   "begin" : "(<)((?:[-\u005Cw.]+:)?)([-\u005Cw.:]+)",
   "beginCaptures" : {
    "1" : {
     "name" : "context.keyword.open.open.xml"
    },
    "2" : {
     "name" : "context.plain.open.namespace.xml"
    },
    "3" : {
     "name" : "context.keyword.open.name.xml"
    }
   },
   "end" : "(/?)(>)",
   "endCaptures" : {
    "1" : {
     "name" : "context.keyword.open.empty.xml"
    },
    "2" : {
     "name" : "context.keyword.open.close.xml"
    }
   },
   "patterns" : [
    {
     "include" : "#attributes"
    }
   ]
  }
 },
 "scopeName" : "source.context.xml",
 "version" : "1.0.0"
}