<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="CGiS" version="9" kateversion="5.0" section="Sources" extensions="*.cgis" mimetype="">
  <highlighting>
    <list name="keywords">
      <item>1D</item>
      <item>2D</item>
      <item>break</item>
      <item>continue</item>
      <item>do</item>
      <item>else</item>
      <item>extern</item>
      <item>for</item>
      <item>forall</item>
      <item>foreach</item>
      <item>function</item>
      <item>if</item>
      <item>in</item>
      <item>inout</item>
      <item>internal</item>
      <item>out</item>
      <item>reduction</item>
      <item>return</item>
      <item>struct</item>
      <item>typedef</item>
      <item>while</item>
    </list>
    <list name="types">
      <item>bool</item>
      <item>bool2</item>
      <item>bool3</item>
      <item>bool4</item>
      <item>int</item>
      <item>int2</item>
      <item>int3</item>
      <item>int4</item>
      <item>half</item>
      <item>half2</item>
      <item>half3</item>
      <item>half4</item>
      <item>float</item>
      <item>float2</item>
      <item>float3</item>
      <item>float4</item>
    </list>
    <contexts>
      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
        <DetectSpaces />
        <StringDetect attribute="Keyword" context="#stay" String="PROGRAM" />
        <StringDetect attribute="Keyword" context="Interface" String="INTERFACE" />
      </context>

      <context attribute="Normal Text" lineEndContext="#stay" name="Interface">
        <DetectSpaces />
        <StringDetect attribute="Keyword" context="Control" String="CONTROL" />
        <StringDetect attribute="Keyword" context="Code" String="CODE" />

        <IncludeRules context="Common" />
      </context>

      <context attribute="Normal Text" lineEndContext="#stay" name="Code">
        <DetectSpaces />
        <StringDetect attribute="Keyword" context="Control" String="CONTROL" />

        <StringDetect attribute="Hint" context="Hint" String="#HINT" />

        <IncludeRules context="Common" />
      </context>

      <context attribute="Normal Text" lineEndContext="#stay" name="Control">
        <DetectSpaces />
        <StringDetect attribute="Keyword" context="Code" String="CODE" />

        <IncludeRules context="Common" />
      </context>

      <context attribute="Normal Text" lineEndContext="#stay" name="Common">
        <keyword attribute="Keyword" context="#stay" String="keywords"/>
        <keyword attribute="Data Type" context="#stay" String="types"/>
        <DetectIdentifier />
        <DetectChar attribute="Symbol" context="#stay" char="{" beginRegion="Brace1" />
        <DetectChar attribute="Symbol" context="#stay" char="}" endRegion="Brace1" />
        <Float attribute="Float" context="Float Suffixes"/>
        <HlCOct attribute="Octal" context="#stay"/>
        <HlCHex attribute="Hex" context="#stay"/>
        <Int attribute="Decimal" context="#stay"/>
        <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="/" lookAhead="true"/>
        <Detect2Chars attribute="Comment" context="MatchComment" char="/" char1="*" lookAhead="true" />
      </context>

      <context name="MatchComment" attribute="Normal Text" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
        <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//BEGIN" beginRegion="Region1" firstNonSpace="true" />
        <StringDetect attribute="Region Marker" context="#pop!Region Marker" String="//END" endRegion="Region1" firstNonSpace="true" />
        <IncludeRules context="##Doxygen" />
        <Detect2Chars attribute="Comment" context="#pop!Commentar 1" char="/" char1="/" />
        <Detect2Chars attribute="Comment" context="#pop!Commentar 2" char="/" char1="*" beginRegion="Comment" />
      </context>

      <context name="Float Suffixes" attribute="Float" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
          <AnyChar String="fF" attribute="Float" context="#pop"/>
      </context>

      <context attribute="Hint" lineEndContext="#stay" name="Hint">
        <DetectSpaces />
        <DetectChar attribute="Hint" context="#pop" char=")" />
        <DetectIdentifier />
      </context>

      <context attribute="Region Marker" lineEndContext="#pop" name="Region Marker" />
      <context attribute="Comment" lineEndContext="#pop" name="Commentar 1">
        <IncludeRules context="##Comments" />
      </context>
      <context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
        <IncludeRules context="##Comments" />
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Normal Text"  defStyleNum="dsNormal"/>
      <itemData name="Keyword"      defStyleNum="dsKeyword"/>
      <itemData name="Data Type"    defStyleNum="dsDataType"/>
      <itemData name="Decimal"      defStyleNum="dsDecVal"/>
      <itemData name="Octal"        defStyleNum="dsBaseN"/>
      <itemData name="Hex"          defStyleNum="dsBaseN"/>
      <itemData name="Float"        defStyleNum="dsFloat"/>
      <itemData name="Comment"      defStyleNum="dsComment"/>
      <itemData name="Symbol"       defStyleNum="dsOperator"/>
      <itemData name="Region Marker" defStyleNum="dsRegionMarker" />
      <itemData name="Hint"         defStyleNum="dsOthers"/>
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name="singleLine" start="//" />
      <comment name="multiLine" start="/*" end="*/" region="Comment" />
    </comments>
    <keywords casesensitive="1" />
  </general>
</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->
