mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:36:18 +08:00
02f0637892
Example repro of the freeze: ``` ```css [ ```
1 line
421 B
JavaScript
1 line
421 B
JavaScript
hljs.registerLanguage("brainfuck",function(){"use strict";return function(e){var 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]}}}()); |