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

<!-- 
Ceylon syntax highlighting
Written by Ezra Altahan
Created 14/02/2016 | Updated 16/10/2016
Version 1.0

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

<SyntaxDefinition name="Ceylon" extensions=".ceylon">

    <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="Black"/>

    <RuleSets>
        <RuleSet ignorecase="false">
        
            <Delimiters>()[]{},:`=;+-_$#*@/%~ &amp;|^&gt;&lt;</Delimiters>
            
            <Span name="LineComment" rule="CeylonDoc" stopateol="true" color="Green" bold="false" italic="false">
                <Begin>//</Begin>
            </Span>
            
            <Span name="BlockComment" rule="CeylonDoc" stopateol="false" color="Green" bold="false" italic="false">
                <Begin>/*</Begin>
                <End>*/</End>
            </Span>
               
            <Span name="String" stopateol="false" color="#808080" bold="false" italic="false" escapecharacter="\">
                <Begin>"</Begin>
                <End>"</End>
            </Span>
            
            <Span name="Char" stopateol="true" color="#808080" bold="false" italic="false" escapecharacter="\">
                <Begin>'</Begin>
                <End>'</End>
            </Span>
            
            <MarkFollowing color="Black" bold="false" italic="true">class</MarkFollowing>
            <MarkFollowing color="Navy" bold="true" italic="false">import</MarkFollowing>
            <MarkFollowing markmarker="true" color="Green" bold="false" italic="false">@</MarkFollowing>
            <MarkFollowing markmarker="true" color="MidnightBlue" bold="false" italic="false">#</MarkFollowing>
            <MarkFollowing markmarker="true" color="MidnightBlue" bold="false" italic="false">$</MarkFollowing>
            
            <KeyWords name="Keywords1" color="Blue" bold="false" italic="false">
                <Key word="abstracts"/>
                <Key word="alias"/>
                <Key word="assembly"/>
                <Key word="assert"/>
                <Key word="assign"/>
                <Key word="break"/>
                <Key word="case"/>
                <Key word="catch"/>
                <Key word="class"/>
                <Key word="continue"/>
                <Key word="dynamic"/>
                <Key word="else"/>
                <Key word="exists"/>
                <Key word="extends"/>
                <Key word="false"/>
                <Key word="finally"/>
                <Key word="for"/>
                <Key word="function"/>
                <Key word="given"/>
                <Key word="if"/>
                <Key word="import"/>
                <Key word="in"/>
                <Key word="interface"/>
                <Key word="is"/>
                <Key word="let"/>
                <Key word="module"/>
                <Key word="new"/>
                <Key word="nonempty"/>
                <Key word="null"/>
                <Key word="object"/>
                <Key word="of"/>
                <Key word="out"/>
                <Key word="outer"/>
                <Key word="package"/>
                <Key word="return"/>
                <Key word="satisfies"/>
                <Key word="super"/>
                <Key word="switch"/>
                <Key word="then"/>
                <Key word="this"/>
                <Key word="throw"/>
                <Key word="true"/>
                <Key word="try"/>
                <Key word="value"/>
                <Key word="void"/>
                <Key word="while"/>
            </KeyWords>
            
            <KeyWords name="Keywords2" color="DarkViolet" bold="false" italic="false">
                <Key word="abstract"/>
                <Key word="actual"/>
                <Key word="annotation"/>
                <Key word="by"/>
                <Key word="default"/>
                <Key word="deprecated"/>
                <Key word="doc"/>
                <Key word="final"/>
                <Key word="formal"/>
                <Key word="late"/>
                <Key word="license"/>
                <Key word="literal"/>
                <Key word="native"/>
                <Key word="optional"/>
                <Key word="sealed"/>
                <Key word="see"/>
                <Key word="shared"/>
                <Key word="small"/>
                <Key word="tagged"/>
                <Key word="throws"/>
                <Key word="variable"/>
            </KeyWords>
        </RuleSet>
        
        <RuleSet name="CeylonDoc" ignorecase="false">
            <Delimiters>~!%^*()-+=|\#/{}[]:;"'&lt;&gt; , .?</Delimiters>
            
            <KeyWords name="Keywords1" color="#484848" bold="true" italic="false">
                <Key word="FIXME"/>
                <Key word="TODO"/>
                <Key word="XXX"/>
            </KeyWords>
        </RuleSet>
    </RuleSets>
</SyntaxDefinition>
