https://www.oauth.com/wp-content/plugins/syntaxhighlighter/third-p…/shBrushMatlabKey.js?ver=20091209
1/** 2 * Author: Will Schleter 3 * based on: http://www.jamesrohal.com 4 */ 5SyntaxHighlighter.brushes.MatlabKey = function() 6{ 7 var keywords = 'break case catch classdef continue else elseif end for function global if otherwise parfor persistent return spmd switch try while'; 8 var functions = ' '; 9 10 this.regexList = [ 11 { regex: /%.*$/gm, css: 'comments' }, // one line comments 12 { regex: /\%\{[\s\S]*?\%\}/gm, css: 'comments'}, // multiline comments 13 { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 14 { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string'}, 15 { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 16 ]; 17} 18 19SyntaxHighlighter.brushes.MatlabKey.prototype = new SyntaxHighlighter.Highlighter(); 20SyntaxHighlighter.brushes.MatlabKey.aliases = ['matlabkey', 'matlab'];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.