14 "include": "#top_level_entity"
20 "name": "comment.line.double-slash.mlir"
25 "match": "(\\W)?([0-9]+\\.[0-9]*)([eE][+-]?[0-9]+)?",
26 "name": "constant.numeric.mlir"
29 "match": "([\\W])?(0x[0-9a-zA-Z]+)",
32 "name": "constant.numeric.mlir"
37 "match": "([\\Wx])?([0-9]+)",
40 "name": "constant.numeric.mlir"
50 "name": "punctuation.definition.string.begin.mlir"
55 "match": "\\\\[nt\"]",
56 "name": "constant.character.escape.mlir"
62 "name": "punctuation.definition.string.end.mlir"
65 "name": "string.quoted.double.mlir"
70 "include": "#attribute_alias_def"
73 "include": "#type_alias_def"
76 "include": "#operation_body"
80 "attribute_alias_def": {
81 "match": "^\\s*(\\#\\w+)\\b\\s+\\=",
84 "name": "constant.language.mlir"
89 "match": "^\\s*(\\!\\w+)\\b\\s+\\=",
92 "name": "entity.name.type.mlir"
99 "match": "^\\s*(\\%[\\%\\w\\:\\,\\s]+)\\s+\\=\\s+([\\w\\.\\$\\-]+)\\b",
104 "include": "#ssa_value"
109 "name": "variable.other.enummember.mlir"
114 "match": "^\\s*([\\w\\.\\$\\-]+)\\b(?=[^\\<\\:])",
115 "name": "variable.other.enummember.mlir"
122 "include": "#operation"
125 "include": "#region_body_or_attr_dict"
128 "include": "#comment"
131 "include": "#ssa_value"
137 "include": "#attribute_value"
140 "include": "#bare_identifier"
144 "region_body_or_attr_dict": {
147 "begin": "\\{\\s*(?=\\%|\\/|\\^)",
150 "include": "#operation_body"
156 "begin": "\\{\\s*(?=[^\\}]*$)",
159 "include": "#operation_body"
165 "begin": "\\{\\s*(?=\\%)",
168 "include": "#operation_body"
174 "begin": "\\{\\s*(?=.*$)",
177 "include": "#attribute_dictionary_body"
190 "include": "#comment"
196 "match": "\\b(false|true|unit)\\b",
197 "name": "constant.language.mlir"
200 "begin": "\\b(affine_map|affine_set)\\s*\\<",
203 "name": "constant.language.mlir"
208 "match": "\\b(ceildiv|floordiv|mod|symbol)\\b",
209 "name": "entity.name.function.mlir"
212 "match": "\\b([\\w\\.\\$\\-]+)\\b",
213 "name": "variable.mlir"
222 "begin": "\\b(dense|opaque|sparse)\\s*\\<",
225 "name": "constant.language.mlir"
230 "include": "#attribute_value"
239 "include": "#attribute_value"
242 "include": "#operation_body"
251 "include": "#attribute_dictionary_body"
257 "match": "(\\@[\\w+\\$\\-\\.]*)",
258 "name": "entity.name.function.mlir"
261 "begin": "(\\#[\\w\\$\\-\\.]+)\\<",
264 "name": "constant.language.mlir"
269 "include": "#attribute_value"
272 "match": "\\-\\>|\\>\\="
275 "include": "#bare_identifier"
281 "match": "\\#[\\w\\$\\-\\.]+\\b",
282 "name": "constant.language.mlir"
285 "include": "#type_value"
291 "include": "#attribute_value"
294 "include": "#bare_identifier"
301 "attribute_dictionary_body": {
304 "include": "#comment"
310 "include": "#attribute_value"
313 "match": "(\\%)?\\b([\\w\\.\\-\\$\\:0-9]+)\\b\\s*(?=\\=|\\,|\\})",
314 "name": "variable.other.mlir"
321 "begin": "(\\![\\w\\$\\-\\.]+)\\<",
324 "name": "entity.name.type.mlir"
329 "include": "#attribute_value"
332 "match": "\\-\\>|\\>\\=",
333 "name": "punctuation.other.mlir"
336 "include": "#bare_identifier"
342 "match": "\\![\\w\\$\\-\\.]+\\b",
343 "name": "entity.name.type.mlir"
346 "begin": "(complex|memref|tensor|tuple|vector)\\<",
349 "name": "entity.name.type.mlir"
354 "match": "[\\?x0-9\\[\\]]+",
366 "include": "#attribute_value"
369 "match": "\\-\\>|\\>\\=",
370 "name": "punctuation.other.mlir"
373 "include": "#bare_identifier"
379 "match": "bf16|f16|f32|f64|f80|f128|index|none|(u|s)?i[0-9]+",
380 "name": "entity.name.type.mlir"
385 "match": "\\b([\\w\\.\\$\\-]+)\\b",
386 "name": "keyword.other.mlir"
389 "match": "\\%[\\w\\.\\$\\:\\#]+",
390 "name": "variable.other.mlir"
393 "match": "\\^[\\w\\d_$\\.-]+",
394 "name": "keyword.control.mlir"
397 "scopeName": "source.mlir"