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