prism-brainfuck.js 300 B

1234567891011121314151617181920
  1. Prism.languages.brainfuck = {
  2. 'pointer': {
  3. pattern: /<|>/,
  4. alias: 'keyword'
  5. },
  6. 'increment': {
  7. pattern: /\+/,
  8. alias: 'inserted'
  9. },
  10. 'decrement': {
  11. pattern: /-/,
  12. alias: 'deleted'
  13. },
  14. 'branching': {
  15. pattern: /\[|\]/,
  16. alias: 'important'
  17. },
  18. 'operator': /[.,]/,
  19. 'comment': /\S+/
  20. };