hexo/node_modules/prismjs/components/prism-brainfuck.js

21 lines
300 B
JavaScript
Raw Normal View History

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