mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-21 07:33:54 +01:00
7 lines
411 B
JavaScript
7 lines
411 B
JavaScript
hljs.registerLanguage("brainfuck",(()=>{"use strict";return e=>{const n={
|
|
className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",
|
|
aliases:["bf"],
|
|
contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{
|
|
returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{
|
|
className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[n]
|
|
},n]}}})()); |