CS-Notes/docs/_style/prism-master/components/prism-brainfuck.js

20 lines
299 B
JavaScript
Raw Permalink Normal View History

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