Add rust brush function in
wiki/lib/plugins/syntaxhighlighter4/dist/syntaxhighlighter.js at the end of the function list:
/* 63 */
/***/ (function(module, exports, __webpack_require__) {
// This is an extension function to support the rust brush:
'use strict';
var BrushBase = __webpack_require__(22);
var regexLib = __webpack_require__(3).commonRegExp;
function Brush() {
var keywords = 'break case catch class continue ' + 'default delete do else enum export extends false ' + 'for function if implements import in instanceof ' + 'interface let new null package private protected ' + 'static return super switch ' + 'this throw true try typeof var while with yield' + ' any bool declare get module never number public readonly set string'; // TypeScript-specific, everything above is common with JavaScript
this.regexList = [{
regex: regexLib.multiLineDoubleQuotedString,
css: 'string'
}, {
regex: regexLib.multiLineSingleQuotedString,
css: 'string'
}, {
regex: regexLib.singleLineCComments,
css: 'comments'
}, {
regex: regexLib.multiLineCComments,
css: 'comments'
}, {
regex: new RegExp(this.getKeywords(keywords), 'gm'),
css: 'keyword'
}];
this.forHtmlScript(regexLib.scriptScriptTags);
};
Brush.prototype = new BrushBase();
Brush.aliases = ['rust'];
module.exports = Brush;
/***/ })