1
CodeMirror.defineMode("vbscript", function() {
2
var regexVBScriptKeyword = /^(?:Call|Case|CDate|Clear|CInt|CLng|Const|CStr|Description|Dim|Do|Each|Else|ElseIf|End|Err|Error|Exit|False|For|Function|If|LCase|Loop|LTrim|Next|Nothing|Now|Number|On|Preserve|Quit|ReDim|Resume|RTrim|Select|Set|Sub|Then|To|Trim|True|UBound|UCase|Until|VbCr|VbCrLf|VbLf|VbTab)$/im;
5
token: function(stream) {
6
if (stream.eatSpace()) return null;
7
var ch = stream.next();
18
stream.eatWhile(/\w/);
19
if (regexVBScriptKeyword.test(stream.current())) return "keyword";
26
CodeMirror.defineMIME("text/vbscript", "vbscript");