katoikia-app/web-ui/web-react/node_modules/prismjs/components/prism-brainfuck.js

20 lines
299 B
JavaScript
Raw Normal View History

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