<?xml version="1.0"?>
<!-- syntaxdefinition for JavaScript 2.0 by Svante Lidman -->
<!-- converted to AvalonEdit format by Siegfried Pammer in 2010 -->
<SyntaxDefinition name="JavaScript" extensions=".js" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
    <Color name="Digits" foreground="DarkBlue" />
    <Color name="Comment" foreground="Green" />
    <Color name="String" foreground="Sienna" />
    <Color name="Character" foreground="Sienna" />
    <Color name="Regex" foreground="Sienna" />
    <Color name="JavaScriptKeyWords" foreground="Blue" />
    <Color name="JavaScriptIntrinsics" foreground="Blue" />
    <Color name="JavaScriptLiterals" foreground="Blue" />
    <Color name="JavaScriptGlobalFunctions" foreground="Blue" />
    <RuleSet ignoreCase="false">
        <Keywords color="JavaScriptKeyWords">
            <Word>break</Word>
            <Word>continue</Word>
            <Word>delete</Word>
            <Word>else</Word>
            <Word>for</Word>
            <Word>function</Word>
            <Word>if</Word>
            <Word>in</Word>
            <Word>new</Word>
            <Word>return</Word>
            <Word>this</Word>
            <Word>typeof</Word>
            <Word>var</Word>
            <Word>void</Word>
            <Word>while</Word>
            <Word>with</Word>
            <Word>abstract</Word>
            <Word>boolean</Word>
            <Word>byte</Word>
            <Word>case</Word>
            <Word>catch</Word>
            <Word>char</Word>
            <Word>class</Word>
            <Word>const</Word>
            <Word>debugger</Word>
            <Word>default</Word>
            <Word>do</Word>
            <Word>double</Word>
            <Word>enum</Word>
            <Word>export</Word>
            <Word>extends</Word>
            <Word>final</Word>
            <Word>finally</Word>
            <Word>float</Word>
            <Word>goto</Word>
            <Word>implements</Word>
            <Word>import</Word>
            <Word>instanceof</Word>
            <Word>int</Word>
            <Word>interface</Word>
            <Word>long</Word>
            <Word>native</Word>
            <Word>package</Word>
            <Word>private</Word>
            <Word>protected</Word>
            <Word>public</Word>
            <Word>short</Word>
            <Word>static</Word>
            <Word>super</Word>
            <Word>switch</Word>
            <Word>synchronized</Word>
            <Word>throw</Word>
            <Word>throws</Word>
            <Word>transient</Word>
            <Word>try</Word>
            <Word>volatile</Word>
        </Keywords>
        <Keywords color="JavaScriptIntrinsics">
            <Word>Array</Word>
            <Word>Boolean</Word>
            <Word>Date</Word>
            <Word>Function</Word>
            <Word>Global</Word>
            <Word>Math</Word>
            <Word>Number</Word>
            <Word>Object</Word>
            <Word>RegExp</Word>
            <Word>String</Word>
        </Keywords>
        <Keywords color="JavaScriptLiterals">
            <Word>false</Word>
            <Word>null</Word>
            <Word>true</Word>
            <Word>NaN</Word>
            <Word>Infinity</Word>
        </Keywords>
        <Keywords color="JavaScriptGlobalFunctions">
            <Word>eval</Word>
            <Word>parseInt</Word>
            <Word>parseFloat</Word>
            <Word>escape</Word>
            <Word>unescape</Word>
            <Word>isNaN</Word>
            <Word>isFinite</Word>
        </Keywords>
        <Span color="Comment">
            <Begin>//</Begin>
        </Span>
        <Span color="Comment" multiline="true">
            <Begin>/\*</Begin>
            <End>\*/</End>
        </Span>
        <!--<Rule color="Regex">/.*/</Rule>-->
        <Span color="Regex">
            <Begin>/</Begin>
            <End>/</End>
            <RuleSet>
                <Span begin="\\/" end="." />
            </RuleSet>
        </Span>
        <Span color="String" multiline="true">
            <Begin>"</Begin>
            <End>"</End>
            <RuleSet>
                <Span begin="\\" end="." />
            </RuleSet>
        </Span>
        <Span color="Character">
            <Begin>'</Begin>
            <End>'</End>
            <RuleSet>
                <Span begin="\\" end="." />
            </RuleSet>
        </Span>
        <Rule color="Digits">\b0[xX][0-9a-fA-F]+|(\b\d+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?</Rule>
    </RuleSet>
</SyntaxDefinition>