﻿CodeHighlighter.addStyle("javascript", {
    comment: {
        exp: /(\/\/[^\n]*\n)|(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)/
    },
    brackets: {
        exp: /\(|\)/
    },
    string: {
        exp: /'[^'].*'|"[^"].*"/
    },
    keywords: {
        exp: /\b(arguments|break|case|continue|default|delete|do|else|false|for|function|if|in|instanceof|new|null|return|switch|this|true|typeof|var|void|while|with)\b/
    },
    global: {
        exp: /\b(toString|valueOf|window|element|prototype|constructor|document|escape|unescape|parseInt|parseFloat|setTimeout|clearTimeout|setInterval|clearInterval|NaN|isNaN|Infinity)\b/
    }
});
