diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-30 19:47:21 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-30 19:47:21 +0100 |
| commit | a98b5ea6fe8e8cc98a55e0fd793e6e8660ea31c1 (patch) | |
| tree | 542810ab5aef99150db228bb54fd58303dcb31c7 /public/prism/prism-robotframework.min.js | |
| parent | ab355897a12b7bda1089a44de326d41455a0f7a3 (diff) | |
chore: add prismjs for syntax highlighting
Diffstat (limited to 'public/prism/prism-robotframework.min.js')
| -rw-r--r-- | public/prism/prism-robotframework.min.js | 81 |
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); |
