1
if (! this.sh_languages) {
2
this.sh_languages = {};
4
sh_languages['javascript'] = [
27
/\b(?:abstract|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|final|finally|for|function|goto|if|implements|in|instanceof|interface|native|new|null|private|protected|prototype|public|return|static|super|switch|synchronized|throw|throws|this|transient|true|try|typeof|var|volatile|while|with)\b/g,
32
/(\+\+|--|\)|\])(\s*)(\/=?(?![*\/]))/g,
33
['sh_symbol', 'sh_normal', 'sh_symbol'],
37
/(0x[A-Fa-f0-9]+|(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?)(\s*)(\/(?![*\/]))/g,
38
['sh_number', 'sh_normal', 'sh_symbol'],
42
/([A-Za-z$_][A-Za-z0-9$_]*\s*)(\/=?(?![*\/]))/g,
43
['sh_normal', 'sh_symbol'],
47
/\/(?:\\.|[^*\\\/])(?:\\.|[^\\\/])*\/[gim]*/g,
52
/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,
67
/~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\|/g,
77
/\b(?:Math|Infinity|NaN|undefined|arguments)\b/g,
82
/\b(?:Array|Boolean|Date|Error|EvalError|Function|Number|Object|RangeError|ReferenceError|RegExp|String|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt)\b/g,
87
/(?:[A-Za-z]|_)[A-Za-z0-9_]*(?=[ \t]*\()/g,
99
/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
121
/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,
126
/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,
132
/&(?:[A-Za-z0-9]+);/g,
137
/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,
142
/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,
153
/(?:TODO|FIXME|BUG)(?:[:]?)/g,
165
/([^=" \t>]+)([ \t]*)(=?)/g,
166
['sh_type', 'sh_normal', 'sh_symbol'],
194
/([^=" \t>]+)([ \t]*)(=?)/g,
195
['sh_type', 'sh_normal', 'sh_symbol'],
223
/([^=" \t>]+)([ \t]*)(=?)/g,
224
['sh_type', 'sh_normal', 'sh_symbol'],
247
/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
269
/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,
274
/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,
280
/&(?:[A-Za-z0-9]+);/g,
285
/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,
290
/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,
301
/(?:TODO|FIXME|BUG)(?:[:]?)/g,
313
/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
318
/(?:TODO|FIXME|BUG)(?:[:]?)/g,