aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-robotframework.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/prism/prism-robotframework.min.js')
-rw-r--r--public/prism/prism-robotframework.min.js81
1 files changed, 81 insertions, 0 deletions
diff --git a/public/prism/prism-robotframework.min.js b/public/prism/prism-robotframework.min.js
new file mode 100644
index 0000000..1674f1a
--- /dev/null
+++ b/public/prism/prism-robotframework.min.js
@@ -0,0 +1,81 @@
+!(function (t) {
+ var r = { pattern: /(^[ \t]*| {2}|\t)#.*/m, lookbehind: !0, greedy: !0 },
+ o = {
+ pattern: /((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,
+ lookbehind: !0,
+ inside: { punctuation: /^[$@&%]\{|\}$/ },
+ };
+ function n(t, n) {
+ var e = {
+ 'section-header': { pattern: /^ ?\*{3}.+?\*{3}/, alias: 'keyword' },
+ };
+ for (var a in n) e[a] = n[a];
+ return (
+ (e.tag = {
+ pattern: /([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,
+ lookbehind: !0,
+ inside: { punctuation: /\[|\]/ },
+ }),
+ (e.variable = o),
+ (e.comment = r),
+ {
+ pattern: RegExp(
+ '^ ?\\*{3}[ \t]*<name>[ \t]*\\*{3}(?:.|[\r\n](?!\\*{3}))*'.replace(
+ /<name>/g,
+ function () {
+ return t;
+ }
+ ),
+ 'im'
+ ),
+ alias: 'section',
+ inside: e,
+ }
+ );
+ }
+ var e = {
+ pattern:
+ /(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
+ lookbehind: !0,
+ alias: 'string',
+ },
+ a = {
+ pattern: /([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,
+ lookbehind: !0,
+ alias: 'function',
+ inside: { variable: o },
+ },
+ i = {
+ pattern: /([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,
+ lookbehind: !0,
+ inside: { variable: o },
+ };
+ (t.languages.robotframework = {
+ settings: n('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: n('Variables'),
+ 'test-cases': n('Test Cases', {
+ 'test-name': a,
+ documentation: e,
+ property: i,
+ }),
+ keywords: n('Keywords', {
+ 'keyword-name': a,
+ documentation: e,
+ property: i,
+ }),
+ tasks: n('Tasks', { 'task-name': a, documentation: e, property: i }),
+ comment: r,
+ }),
+ (t.languages.robot = t.languages.robotframework);
+})(Prism);