sterzycom/assets/js/components/prism-brainfuck.js
2019-01-25 13:45:36 +01:00

20 lines
No EOL
299 B
JavaScript
Executable file

Prism.languages.brainfuck = {
'pointer': {
pattern: /<|>/,
alias: 'keyword'
},
'increment': {
pattern: /\+/,
alias: 'inserted'
},
'decrement': {
pattern: /-/,
alias: 'deleted'
},
'branching': {
pattern: /\[|\]/,
alias: 'important'
},
'operator': /[.,]/,
'comment': /\S+/
};