mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 04:43:53 +08:00
02f0637892
Example repro of the freeze: ``` ```css [ ```
1 line
611 B
JavaScript
1 line
611 B
JavaScript
hljs.registerLanguage("dsconfig",function(){"use strict";return function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:"\\s",excludeEnd:!0,relevance:10},{className:"built_in",begin:"(list|create|get|set|delete)-(\\w+)",end:"\\s",excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:"--(\\w+)",end:"\\s",excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:"[\\w-?]+:\\w+",end:"\\W",relevance:0},{className:"string",begin:"\\w+-?\\w+",end:"\\W",relevance:0},e.HASH_COMMENT_MODE]}}}()); |