mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 20:25:33 +08:00
02f0637892
Example repro of the freeze: ``` ```css [ ```
1 line
760 B
JavaScript
1 line
760 B
JavaScript
hljs.registerLanguage("roboconf",function(){"use strict";return function(n){var e={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet [a-zA-Z-_][^\\n{]+\\{",end:"}",keywords:"facet",contains:[e,n.HASH_COMMENT_MODE]},{begin:"^\\s*instance of [a-zA-Z-_][^\\n{]+\\{",end:"}",keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",e,n.HASH_COMMENT_MODE]},{begin:"^[a-zA-Z-_][^\\n{]+\\{",end:"}",contains:[e,n.HASH_COMMENT_MODE]},n.HASH_COMMENT_MODE]}}}()); |