brainfuck.min.js 529 B

12345678
  1. /*! `brainfuck` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>{const a={className:"literal",
  3. begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],
  4. contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{
  5. match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{
  6. className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",
  7. begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[a]},a]}}})()
  8. ;export default hljsGrammar;