prism-false.js 641 B

1234567891011121314151617181920212223242526272829303132
  1. (function (Prism) {
  2. /**
  3. * Based on the manual by Wouter van Oortmerssen.
  4. *
  5. * @see {@link https://github.com/PrismJS/prism/issues/2801#issue-829717504}
  6. */
  7. Prism.languages['false'] = {
  8. 'comment': {
  9. pattern: /\{[^}]*\}/
  10. },
  11. 'string': {
  12. pattern: /"[^"]*"/,
  13. greedy: true
  14. },
  15. 'character-code': {
  16. pattern: /'(?:[^\r]|\r\n?)/,
  17. alias: 'number'
  18. },
  19. 'assembler-code': {
  20. pattern: /\d+`/,
  21. alias: 'important'
  22. },
  23. 'number': /\d+/,
  24. 'operator': /[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,
  25. 'punctuation': /\[|\]/,
  26. 'variable': /[a-z]/,
  27. 'non-standard': {
  28. pattern: /[()<BDO®]/,
  29. alias: 'bold'
  30. }
  31. };
  32. }(Prism));