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