aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-robotframework.min.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-13 19:32:56 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commit006b15b467a5cd835a6eab1b49023100bdc8f2e6 (patch)
tree949c7295c2e206f42357f135bab4696ddf6576ec /public/prism/prism-robotframework.min.js
parent00f147a7a687d5772bcc538bc606cfff972178cd (diff)
refactor(components): rewrite Code component and usePrism hook
* move Prism styles to Sass placeholders to avoid repeats * let usePrism consumer define its plugins (remove default ones) * remove `plugins` prop from Code component * add new props to Code component to let consumer configure plugins (and handle plugin list from the given options) However there are some problems with Prism plugins: line-highlight and treeview does not seems to be loaded. I don't want to use Babel instead of SWC so I have no solution for now.
Diffstat (limited to 'public/prism/prism-robotframework.min.js')
-rw-r--r--public/prism/prism-robotframework.min.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/public/prism/prism-robotframework.min.js b/public/prism/prism-robotframework.min.js
index 1674f1a..4dd46e7 100644
--- a/public/prism/prism-robotframework.min.js
+++ b/public/prism/prism-robotframework.min.js
@@ -1,23 +1,23 @@
!(function (t) {
- var r = { pattern: /(^[ \t]*| {2}|\t)#.*/m, lookbehind: !0, greedy: !0 },
- o = {
+ var n = { pattern: /(^[ \t]*| {2}|\t)#.*/m, lookbehind: !0, greedy: !0 },
+ e = {
pattern: /((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,
lookbehind: !0,
inside: { punctuation: /^[$@&%]\{|\}$/ },
};
- function n(t, n) {
- var e = {
+ function a(t, a) {
+ var r = {
'section-header': { pattern: /^ ?\*{3}.+?\*{3}/, alias: 'keyword' },
};
- for (var a in n) e[a] = n[a];
+ for (var o in a) r[o] = a[o];
return (
- (e.tag = {
+ (r.tag = {
pattern: /([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,
lookbehind: !0,
inside: { punctuation: /\[|\]/ },
}),
- (e.variable = o),
- (e.comment = r),
+ (r.variable = e),
+ (r.comment = n),
{
pattern: RegExp(
'^ ?\\*{3}[ \t]*<name>[ \t]*\\*{3}(?:.|[\r\n](?!\\*{3}))*'.replace(
@@ -29,29 +29,29 @@
'im'
),
alias: 'section',
- inside: e,
+ inside: r,
}
);
}
- var e = {
+ var r = {
pattern:
/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
lookbehind: !0,
alias: 'string',
},
- a = {
+ o = {
pattern: /([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,
lookbehind: !0,
alias: 'function',
- inside: { variable: o },
+ inside: { variable: e },
},
i = {
pattern: /([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,
lookbehind: !0,
- inside: { variable: o },
+ inside: { variable: e },
};
(t.languages.robotframework = {
- settings: n('Settings', {
+ settings: a('Settings', {
documentation: {
pattern:
/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,
@@ -63,19 +63,19 @@
lookbehind: !0,
},
}),
- variables: n('Variables'),
- 'test-cases': n('Test Cases', {
- 'test-name': a,
- documentation: e,
+ variables: a('Variables'),
+ 'test-cases': a('Test Cases', {
+ 'test-name': o,
+ documentation: r,
property: i,
}),
- keywords: n('Keywords', {
- 'keyword-name': a,
- documentation: e,
+ keywords: a('Keywords', {
+ 'keyword-name': o,
+ documentation: r,
property: i,
}),
- tasks: n('Tasks', { 'task-name': a, documentation: e, property: i }),
- comment: r,
+ tasks: a('Tasks', { 'task-name': o, documentation: r, property: i }),
+ comment: n,
}),
(t.languages.robot = t.languages.robotframework);
})(Prism);