<?xml version="1.0" encoding="utf-8"?>

<!-- 
Nemerle syntax highlighting
Written by Ezra Altahan
Created 17/09/2016 | Updated 16/10/2016
Version 1.0

hello@exr.be
https://github.com/ei
-->

<SyntaxDefinition name="Nemerle" extensions=".n">

    <Environment> 
        <Default color="Black" bgcolor="#FFFFFF"/>
        <Selection color="Black" bgcolor="#C3C3FF"/>
        <LineNumbers color="Gray" bgcolor="#FFFFFF"/>
        <CaretMarker color="#F0F0F1"/>
        <VRuler color="#E0E0E5"/>
        
        <FoldLine color="#A0A0A0" bgcolor="#FFFFFF"/>
        <FoldMarker color="Black" bgcolor="#FFFFFF"/>
        <SelectedFoldLine color="Black" bgcolor="#FFFFFF"/>
        
        <EOLMarkers color="#CACAD2"/>
        <SpaceMarkers color="#B6B6C0"/>
        <TabMarkers color="#B6B6C0"/>
        <InvalidLines color="#B6B6C0"/>
    </Environment>
        
    <Properties>
        <Property name="LineComment" value="//"/>
        <Property name="BlockCommentBegin" value="/*"/>
        <Property name="BlockCommentEnd" value="*/"/>
    </Properties>
        
    <Digits name="Digits" color="#BF382A"/>

    <RuleSets>
        <RuleSet ignorecase="false">
                        
            <Delimiters>()[]{},:.`=;+-*/%~ &amp;|^&gt;&lt;</Delimiters>
            
            <Span name="LineComment" stopateol="true" color="Green" bold="false" italic="false">
                <Begin>//</Begin>
            </Span>
                        
            <Span name="BlockComment1" stopateol="false" color="Green" bold="false" italic="false">
                <Begin>/*</Begin>
                <End>*/</End>
            </Span>
                        
            <Span name="String1" stopateol="false" color="#808080" bold="false" italic="false" escapecharacter="\">
                <Begin>@@"</Begin>
                <End>"</End>
            </Span>
            
            <Span name="String2" stopateol="true" color="#808080" bold="false" italic="false" escapecharacter="\">
                <Begin>"</Begin>
                <End>"</End>
            </Span>
            
            <MarkFollowing color="Black" bold="false" italic="true">class</MarkFollowing>

            <KeyWords name="Keywords1" color="Blue" bold="false" italic="false">
                <Key word="_"/>
                <Key word="abstract"/>
                <Key word="and"/>
                <Key word="array"/>
                <Key word="as"/>
                <Key word="base"/>
                <Key word="catch"/>
                <Key word="class"/>
                <Key word="def"/>
                <Key word="do"/>
                <Key word="else"/>
                <Key word="extern"/>
                <Key word="false"/>
                <Key word="finally"/>
                <Key word="for"/>
                <Key word="foreach"/>
                <Key word="fun"/>
                <Key word="get"/>
                <Key word="if"/>
                <Key word="implements"/>
                <Key word="in"/>
                <Key word="interface"/>
                <Key word="internal"/>
                <Key word="lock"/>
                <Key word="macro"/>
                <Key word="match"/>
                <Key word="module"/>
                <Key word="mutable"/>
                <Key word="namespace"/>
                <Key word="new"/>
                <Key word="null"/>
                <Key word="out"/>
                <Key word="override"/>
                <Key word="params"/>
                <Key word="private"/>
                <Key word="protected"/>
                <Key word="public"/>
                <Key word="ref"/>
                <Key word="repeat"/>
                <Key word="sealed"/>
                <Key word="set"/>
                <Key word="static"/>
                <Key word="struct"/>
                <Key word="syntax"/>
                <Key word="this"/>
                <Key word="throw"/>
                <Key word="true"/>
                <Key word="try"/>
                <Key word="typeof"/>
                <Key word="unless"/>
                <Key word="using"/>
                <Key word="variant"/>
                <Key word="virtual"/>
                <Key word="when"/>
                <Key word="where"/>
                <Key word="while"/>
            </KeyWords>
                        
            <KeyWords name="Keywords2" color="DarkViolet" bold="false" italic="false">
                <Key word="bool"/>
                <Key word="byte"/>
                <Key word="char"/>
                <Key word="decimal"/>
                <Key word="double"/>
                <Key word="float"/>
                <Key word="int"/>
                <Key word="list"/>
                <Key word="long"/>
                <Key word="object"/>
                <Key word="sbyte"/>
                <Key word="short"/>
                <Key word="string"/>
                <Key word="uint"/>
                <Key word="ulong"/>
                <Key word="ushort"/>
                <Key word="void"/>
            </KeyWords>
            
            <KeyWords name="Keywords3" color="Brown" bold="false" italic="false">
                <Key word="#endif"/>
                <Key word="#endregion"/>
                <Key word="#error"/>
                <Key word="#if"/>
                <Key word="#line"/>
                <Key word="#pragma"/>
                <Key word="#region"/>
                <Key word="#warning"/>
            </KeyWords>
        </RuleSet>
    </RuleSets>
</SyntaxDefinition>
