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
|
!(function (n) {
function i(e, t, a) {
return {
pattern: RegExp('<#' + e + '[\\s\\S]*?#>'),
alias: 'block',
inside: {
delimiter: { pattern: RegExp('^<#' + e + '|#>$'), alias: 'important' },
content: { pattern: /[\s\S]+/, inside: t, alias: a },
},
};
}
n.languages['t4-templating'] = Object.defineProperty({}, 'createT4', {
value: function (e) {
var t = n.languages[e],
a = 'language-' + e;
return {
block: {
pattern: /<#[\s\S]+?#>/,
inside: {
directive: i('@', {
'attr-value': {
pattern: /=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,
inside: { punctuation: /^=|^["']|["']$/ },
},
keyword: /\b\w+(?=\s)/,
'attr-name': /\b\w+/,
}),
expression: i('=', t, a),
'class-feature': i('\\+', t, a),
standard: i('', t, a),
},
},
};
},
});
})(Prism);
|