dp.sh.Brushes.RIAScript = function()
{
  var keywords =  'do else false for if new switch case break default true while var waitfor debugger typeof null function return include try catch throw finally';

  this.regexList = [
    { regex: dp.sh.RegexLib.SingleLineCComments,        css: 'comment' },     // one line comments
    { regex: dp.sh.RegexLib.MultiLineCComments,         css: 'comment' },     // multiline comments
    { regex: dp.sh.RegexLib.DoubleQuotedString,         css: 'string' },      // double quoted strings
    { regex: dp.sh.RegexLib.SingleQuotedString,         css: 'string' },      // single quoted strings
    { regex: new RegExp('^\\s*#.*', 'gm'),            css: 'preprocessor' },    // preprocessor tags like #region and #endregion
    { regex: new RegExp(this.GetKeywords(keywords), 'gm'),    css: 'keyword' }      // keywords
    ];

  this.CssClass = 'dp-c';
}

dp.sh.Brushes.RIAScript.prototype = new dp.sh.Highlighter();
dp.sh.Brushes.RIAScript.Aliases = ['rts'];
