mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 03:37:15 +08:00
02f0637892
Example repro of the freeze: ``` ```css [ ```
1 line
452 B
JavaScript
1 line
452 B
JavaScript
hljs.registerLanguage("leaf",function(){"use strict";return function(e){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:" {",returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}}()); |