14 "include": "#string_block"
23 "include": "#user_constraint"
26 "include": "#user_rewrite"
32 "include": "#inside_pattern"
38 "name": "comment.line.double-slash.pdll"
41 "name": "string.quoted.double.pdll",
46 "name": "punctuation.definition.string.begin.pdll"
51 "match": "\\\\[nt\"]",
52 "name": "constant.character.escape.pdll"
56 "name": "invalid.illegal.pdll"
61 "name": "punctuation.definition.string.end.pdll"
66 "name": "string.quoted.triple.pdll",
71 "name": "punctuation.definition.string.begin.pdll"
76 "match": "\\\\[nt\"]",
77 "name": "constant.character.escape.pdll"
81 "name": "invalid.illegal.pdll"
86 "name": "punctuation.definition.string.end.pdll"
92 "name": "constant.numeric.pdll"
97 "match": "(#include)",
98 "name": "keyword.control.pdll"
102 "argument_or_result_list": {
105 "match": "\\b([aA-zZ_0-9]*)\\b\\s*:\\s*([aA-zZ_0-9]+)\\b(\\<([^\\>]+)\\>)?",
108 "name": "variable.parameter.pdll"
111 "name": "entity.name.type.pdll"
114 "name": "variable.other.enummember.pdll"
119 "match": "(\\(|\\>|,)\\s*([aA-zZ_0-9]+)\\b(\\<([^\\>]+)\\>)?\\s*(?=[^:])",
122 "name": "entity.name.type.pdll"
125 "name": "variable.other.enummember.pdll"
134 "begin": "\\b(Constraint)\\b\\s*(\\b[aA-zZ_0-9]*\\b)?",
137 "name": "keyword.other.pdll"
140 "name": "entity.name.type.pdll"
148 "include": "source.cpp"
157 "include": "#argument_or_result_list"
163 "include": "#argument_or_result_list"
169 "include": "#inside_pattern"
178 "include": "#inside_pattern"
184 "end": "(}|;|,)|(?=\\))"
191 "begin": "\\b(Rewrite)\\b\\s*(\\b[aA-zZ_0-9]*\\b)?",
194 "name": "keyword.other.pdll"
197 "name": "entity.name.function.pdll"
205 "include": "source.cpp"
214 "include": "#argument_or_result_list"
220 "include": "#argument_or_result_list"
226 "include": "#inside_pattern"
235 "include": "#inside_pattern"
241 "end": "(}|;|,)|(?=\\))"
245 "pattern_metadata": {
248 "match": "\\b(with)\\b",
249 "name": "keyword.other.pdll"
252 "match": "\\b(benefit)\\b\\(([0-9]+)\\)",
255 "name": "entity.name.variable.pdll"
258 "name": "constant.numeric.pdll"
263 "match": "\\b(recursion)\\b",
264 "name": "entity.name.variable.pdll"
271 "begin": "\\b(Pattern)\\b\\s*(\\b[aA-zZ_0-9]*\\b)?\\s*(\\bwith\\b\\s*[^\\{]*)?\\s*({)",
274 "name": "keyword.other.pdll"
277 "name": "entity.name.function.pdll"
282 "include": "#pattern_metadata"
289 "include": "#inside_pattern"
295 "begin": "\\b(Pattern)\\b\\s*(\\b[aA-zZ_0-9]*\\b)?\\s*(\\bwith\\b\\s*[^\\=]*)?\\s*(=>)",
298 "name": "keyword.other.pdll"
301 "name": "entity.name.function.pdll"
306 "include": "#pattern_metadata"
313 "include": "#inside_pattern"
323 "match": "\\b(erase|let|replace|return|rewrite|with)\\b",
326 "name": "keyword.control.pdll"
331 "include": "#expressions"
335 "variable_constraint": {
338 "match": "\\b(Op)<([a-zA-Z0-9_\\.$-]*)>",
341 "name": "entity.name.type.pdll"
344 "name": "variable.other.enummember.pdll"
352 "include": "#expressions"
358 "match": "[a-zA-Z_0-9]+",
359 "name": "entity.name.type.pdll"
363 "variable_definition": {
366 "begin": "\\b([aA-zZ_0-9]*)\\b\\s*:\\s*\\[",
369 "name": "entity.name.variable.pdll"
374 "include": "#variable_constraint"
380 "match": "\\b([aA-zZ_0-9]*)\\b\\s*:\\s*([aA-zZ_0-9]+(\\<([^\\>]+)\\>)?)",
383 "name": "entity.name.variable.pdll"
388 "include": "#variable_constraint"
399 "include": "#user_constraint"
402 "include": "#user_rewrite"
405 "include": "#attr_expr"
408 "include": "#op_expr"
411 "include": "#type_expr"
414 "include": "#call_expr"
417 "include": "#variable_definition"
420 "include": "#identifier_expr"
426 "include": "#string_block"
429 "include": "#comment"
435 "include": "#inside_pattern"
444 "include": "#expressions"
457 "name": "keyword.other.pdll"
465 "include": "#string_block"
473 "begin": "\\b([a-zA-Z0-9_]+)\\(",
476 "name": "entity.name.variable.pdll"
481 "include": "#expressions"
487 "match": "\\b([a-zA-Z0-9_]+)\\b",
488 "name": "entity.name.variable.pdll"
491 "match": "\\b(op)<([0-9a-zA-Z_\\.]*)>",
494 "name": "keyword.other.pdll"
497 "name": "variable.other.enummember.pdll"
504 "begin": "\\b(type)<",
507 "name": "keyword.other.pdll"
515 "include": "#string_block"
523 "scopeName": "source.pdll"