summaryrefslogtreecommitdiff
path: root/live/static/hl/languages/brainfuck.min.js
blob: aa5042c92954355d8edda636e6eb322feb9a6b08 (plain)
1
2
3
4
5
6
7
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]}}})());