1
0
mirror of https://github.com/writeas/writefreely synced 2024-12-08 22:46:00 +01:00
writefreely/static/js/highlightjs/brainfuck.min.js

1 line
276 B
JavaScript
Raw Normal View History

2018-12-07 22:37:14 +01:00
hljs.registerLanguage("brainfuck",function(r){var n={cN:"literal",b:"[\\+\\-]",r:0};return{aliases:["bf"],c:[r.C("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{rE:!0,r:0}),{cN:"title",b:"[\\[\\]]",r:0},{cN:"string",b:"[\\.,]",r:0},{b:/\+\+|\-\-/,rB:!0,c:[n]},n]}});