source: node_modules/refractor/lang/roboconf.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 765 bytes
Line 
1'use strict'
2
3module.exports = roboconf
4roboconf.displayName = 'roboconf'
5roboconf.aliases = []
6function roboconf(Prism) {
7 Prism.languages.roboconf = {
8 comment: /#.*/,
9 keyword: {
10 pattern:
11 /(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,
12 lookbehind: true
13 },
14 component: {
15 pattern: /[\w-]+(?=[ \t]*\{)/,
16 alias: 'variable'
17 },
18 property: /[\w.-]+(?=[ \t]*:)/,
19 value: {
20 pattern: /(=[ \t]*(?![ \t]))[^,;]+/,
21 lookbehind: true,
22 alias: 'attr-value'
23 },
24 optional: {
25 pattern: /\(optional\)/,
26 alias: 'builtin'
27 },
28 wildcard: {
29 pattern: /(\.)\*/,
30 lookbehind: true,
31 alias: 'operator'
32 },
33 punctuation: /[{},.;:=]/
34 }
35}
Note: See TracBrowser for help on using the repository browser.