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

<!-- 
C syntax highlighting
Written by Ezra Altahan
Created 06/02/2015 | Updated 16/10/2016
Version 1.1

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

<SyntaxDefinition name="C" extensions=".c">

    <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" rule="Doxygen" stopateol="false" color="Teal" bold="false" italic="false">
                <Begin>/**</Begin>
                <End>*/</End>
            </Span>
                        
            <Span name="BlockComment2" stopateol="false" color="Green" bold="false" italic="false">
                <Begin>/*</Begin>
                <End>*/</End>
            </Span>
                        
            <Span name="String" stopateol="true" 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>
            
            <Span name="Preprocessor" stopateol="true" color="Sienna" bold="false" italic="false">
                <Begin>#include</Begin>
            </Span>

            <KeyWords name="Keywords1" color="Blue" bold="false" italic="false">
                <Key word="break"/>
                <Key word="case"/>
                <Key word="continue"/>
                <Key word="default"/>
                <Key word="do"/>
                <Key word="else"/>
                <Key word="for"/>
                <Key word="goto"/>
                <Key word="if"/>
                <Key word="inline"/>
                <Key word="restrict"/>
                <Key word="return"/>
                <Key word="sizeof"/>
                <Key word="switch"/>
                <Key word="typedef"/>
                <Key word="while"/>
            </KeyWords>
                        
            <KeyWords name="Keywords2" color="DarkViolet" bold="false" italic="false">
                <Key word="DIR"/>
                <Key word="FILE"/>
                <Key word="_Alignas"/>
                <Key word="_Alignof"/>
                <Key word="_Atomic"/>
                <Key word="_Bool"/>
                <Key word="_Complex"/>
                <Key word="_Generic"/>
                <Key word="_Imaginary"/>
                <Key word="_Noreturn"/>
                <Key word="_Static_assert"/>
                <Key word="_Thread_local"/>
                <Key word="__asm__"/>
                <Key word="__volatile__"/>
                <Key word="asm"/>
                <Key word="auto"/>
                <Key word="bool"/>
                <Key word="char"/>
                <Key word="clock_t"/>
                <Key word="complex"/>
                <Key word="const"/>
                <Key word="div_t"/>
                <Key word="double"/>
                <Key word="enum"/>
                <Key word="extern"/>
                <Key word="float"/>
                <Key word="fpos_t"/>
                <Key word="imaginary"/>
                <Key word="int"/>
                <Key word="int16"/>
                <Key word="int16_t"/>
                <Key word="int32"/>
                <Key word="int32_t"/>
                <Key word="int64"/>
                <Key word="int64_t"/>
                <Key word="int8"/>
                <Key word="int8_t"/>
                <Key word="int_fast16_t"/>
                <Key word="int_fast32_t"/>
                <Key word="int_fast64_t"/>
                <Key word="int_fast8_t"/>
                <Key word="int_least16_t"/>
                <Key word="int_least32_t"/>
                <Key word="int_least64_t"/>
                <Key word="int_least8_t"/>
                <Key word="intmax_t"/>
                <Key word="intptr_t"/>
                <Key word="jmp_buf"/>
                <Key word="ldiv_t"/>
                <Key word="long"/>
                <Key word="mbstate_t"/>
                <Key word="off_t"/>
                <Key word="ptrdiff_t"/>
                <Key word="register"/>
                <Key word="short"/>
                <Key word="sig_atomic_t"/>
                <Key word="signed"/>
                <Key word="size_t"/>
                <Key word="ssize_t"/>
                <Key word="static"/>
                <Key word="struct"/>
                <Key word="time_t"/>
                <Key word="uint16"/>
                <Key word="uint16_t"/>
                <Key word="uint32"/>
                <Key word="uint32_t"/>
                <Key word="uint64"/>
                <Key word="uint64_t"/>
                <Key word="uint8"/>
                <Key word="uint8_t"/>
                <Key word="uint_fast16_t"/>
                <Key word="uint_fast32_t"/>
                <Key word="uint_fast64_t"/>
                <Key word="uint_fast8_t"/>
                <Key word="uint_least16_t"/>
                <Key word="uint_least32_t"/>
                <Key word="uint_least64_t"/>
                <Key word="uint_least8_t"/>
                <Key word="uintmax_t"/>
                <Key word="uintptr_t"/>
                <Key word="union"/>
                <Key word="unsigned"/>
                <Key word="va_list"/>
                <Key word="void"/>
                <Key word="volatile"/>
                <Key word="wchar_t"/>
                <Key word="wctrans_t"/>
                <Key word="wctype_t"/>
                <Key word="wint_t"/>
            </KeyWords>
            
            <KeyWords name="Keywords3" color="Red" bold="false" italic="false">
                <Key word="FALSE"/>
                <Key word="NULL"/>
                <Key word="TRUE"/>
                <Key word="false"/>
                <Key word="true"/>
            </KeyWords>
            
            <KeyWords name="Keywords4" color="Sienna" bold="false" italic="false">
                <Key word="#define"/>
                <Key word="#elif"/>
                <Key word="#else"/>
                <Key word="#endif"/>
                <Key word="#if"/>
                <Key word="#ifdef"/>
                <Key word="#ifndef"/>
                <Key word="#pragma"/>
                <Key word="#undef"/>
            </KeyWords>
        </RuleSet>
        
        <RuleSet name="Doxygen" ignorecase="false">
            <Delimiters>~!%^*()+=|\#/{}[];"'&lt;&gt; , .?</Delimiters>
            
            <KeyWords name="Keywords1" color="DimGray" bold="false" italic="false">
                <Key word="@author"/>
                <Key word="@b"/>
                <Key word="@brief"/>
                <Key word="@c"/>
                <Key word="@code"/>
                <Key word="@date"/>
                <Key word="@endcode"/>
                <Key word="@endverbatim"/>
                <Key word="@file"/>
                <Key word="@note"/>
                <Key word="@p"/>
                <Key word="@param"/>
                <Key word="@return"/>
                <Key word="@see"/>
                <Key word="@verbatim"/>
                <Key word="@warning"/>
            </KeyWords>
        </RuleSet>
    </RuleSets>
</SyntaxDefinition>
