UNPKG

550 BJavaScriptView Raw
1Prism.languages.roboconf = {
2 'comment': /#.*/,
3 'keyword': {
4 'pattern': /(^|\s)(?:(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{)|(?:external|import)\b)/,
5 lookbehind: true
6 },
7 'component': {
8 pattern: /[\w-]+(?=[ \t]*\{)/,
9 alias: 'variable'
10 },
11 'property': /[\w.-]+(?=[ \t]*:)/,
12 'value': {
13 pattern: /(=[ \t]*)[^,;]+/,
14 lookbehind: true,
15 alias: 'attr-value'
16 },
17 'optional': {
18 pattern: /\(optional\)/,
19 alias: 'builtin'
20 },
21 'wildcard': {
22 pattern: /(\.)\*/,
23 lookbehind: true,
24 alias: 'operator'
25 },
26 'punctuation': /[{},.;:=]/
27};
\No newline at end of file