summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-roboconf.min.js
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: /[{},.;:=]/,
};