!(function (e) { var r = '(?:[ \t]+(?![ \t])(?:)?|)'.replace( //g, function () { return '\\\\[\r\n](?:\\s|\\\\[\r\n]|#.*(?!.))*(?![\\s#]|\\\\[\r\n])'; } ), n = '"(?:[^"\\\\\r\n]|\\\\(?:\r\n|[^]))*"|\'(?:[^\'\\\\\r\n]|\\\\(?:\r\n|[^]))*\'', t = '--[\\w-]+=(?:|(?!["\'])(?:[^\\s\\\\]|\\\\.)+)'.replace( //g, function () { return n; } ), o = { pattern: RegExp(n), greedy: !0 }, i = { pattern: /(^[ \t]*)#.*/m, lookbehind: !0, greedy: !0 }; function a(e, n) { return ( (e = e .replace(//g, function () { return t; }) .replace(//g, function () { return r; })), RegExp(e, n) ); } (e.languages.docker = { instruction: { pattern: /(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im, lookbehind: !0, greedy: !0, inside: { options: { pattern: a('(^(?:ONBUILD)?\\w+)(?:)*', 'i'), lookbehind: !0, greedy: !0, inside: { property: { pattern: /(^|\s)--[\w-]+/, lookbehind: !0 }, string: [ o, { pattern: /(=)(?!["'])(?:[^\s\\]|\\.)+/, lookbehind: !0 }, ], operator: /\\$/m, punctuation: /=/, }, }, keyword: [ { pattern: a( '(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\\b', 'i' ), lookbehind: !0, greedy: !0, }, { pattern: a( '(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\\\]+)AS', 'i' ), lookbehind: !0, greedy: !0, }, { pattern: a('(^ONBUILD)\\w+', 'i'), lookbehind: !0, greedy: !0 }, { pattern: /^\w+/, greedy: !0 }, ], comment: i, string: o, variable: /\$(?:\w+|\{[^{}"'\\]*\})/, operator: /\\$/m, }, }, comment: i, }), (e.languages.dockerfile = e.languages.docker); })(Prism); or'>author
blob: 2c72101689795de98e212ee349a9beb122b9ff83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Prism.languages.roboconf = {
  comment: /#.*/,
  keyword: {
    pattern:
      /(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,
    lookbehind: !0,
  },
  component: { pattern: /[\w-]+(?=[ \t]*\{)/, alias: 'variable' },
  property: /[\w.-]+(?=[ \t]*:)/,
  value: {
    pattern: /(=[ \t]*(?![ \t]))[^,;]+/,
    lookbehind: !0,
    alias: 'attr-value',
  },
  optional: { pattern: /\(optional\)/, alias: 'builtin' },
  wildcard: { pattern: /(\.)\*/, lookbehind: !0, alias: 'operator' },
  punctuation: /[{},.;:=]/,
};