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

21 lines
320 B
JavaScript
Raw Normal View History

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