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
|
!(function (t) {
var n = { pattern: /(^[ \t]*| {2}|\t)#.*/m, lookbehind: !0, greedy: !0 },
e = {
pattern: /((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,
lookbehind: !0,
inside: { punctuation: /^[$@&%]\{|\}$/ },
};
function a(t, a) {
var r = {
'section-header': { pattern: /^ ?\*{3}.+?\*{3}/, alias: 'keyword' },
};
for (var o in a) r[o] = a[o];
return (
(r.tag = {
pattern: /([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,
lookbehind: !0,
inside: { punctuation: /\[|\]/ },
}),
(r.variable = e),
(r.comment = n),
{
pattern: RegExp(
'^ ?\\*{3}[ \t]*<name>[ \t]*\\*{3}(?:.|[\r\n](?!\\*{3}))*'.replace(
/<name>/g,
function () {
return t;
}
),
'im'
),
alias: 'section',
inside: r,
}
);
}
var r = {
pattern:
/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
lookbehind: !0,
alias: 'string',
},
o = {
pattern: /([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,
lookbehind: !0,
alias: 'function',
inside: { variable: e },
},
i = {
pattern: /([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,
lookbehind: !0,
inside: { variable: e },
};
(t.languages.robotframework = {
settings: a('Settings', {
documentation: {
pattern:
/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
lookbehind: !0,
alias: 'string',
},
property: {
pattern: /([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,
lookbehind: !0,
},
}),
variables: a('Variables'),
'test-cases': a('Test Cases', {
'test-name': o,
documentation: r,
property: i,
}),
keywords: a('Keywords', {
'keyword-name': o,
documentation: r,
property: i,
}),
tasks: a('Tasks', { 'task-name': o, documentation: r, property: i }),
comment: n,
}),
(t.languages.robot = t.languages.robotframework);
})(Prism);
|