prism-roboconf.js 560 B

123456789101112131415161718192021222324252627
  1. Prism.languages.roboconf = {
  2. 'comment': /#.*/,
  3. 'keyword': {
  4. 'pattern': /(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,
  5. lookbehind: true
  6. },
  7. 'component': {
  8. pattern: /[\w-]+(?=[ \t]*\{)/,
  9. alias: 'variable'
  10. },
  11. 'property': /[\w.-]+(?=[ \t]*:)/,
  12. 'value': {
  13. pattern: /(=[ \t]*(?![ \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. };