<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Diff" version="1.02" kateversion="2.4" section="Other" extensions="*.diff;*patch" mimetype="text/x-diff">
  <highlighting>

    <contexts>
      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
      	<RegExpr attribute="Keyword" context="Keyword" String="(\+\+\+|\-\-\-|\*\*\*|diff|\d)" column="0"/>
	<RegExpr attribute="Added line" context="Added" String="(\+|&gt;|!)" column="0"/>
	<AnyChar attribute="Removed line" context="Removed" String="-&lt;" column="0"/>
	<Detect2Chars attribute="Data Type" context="Data" char="@" char1="@" column="0"/>
      </context>

      <context attribute="Keyword" lineEndContext="#pop" name="Keyword"/>
      <context attribute="Removed line" lineEndContext="#pop" name="Removed"/>
      <context attribute="Added line" lineEndContext="#pop" name="Added"/>
      <context attribute="Data Type" lineEndContext="#pop" name="Data"/>

    </contexts>

    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Keyword"  defStyleNum="dsKeyword"/>
      <itemData name="Data Type"  defStyleNum="dsDataType"/>
      <itemData name="Removed line"  defStyleNum="dsOthers" color="#FF0000"/>
      <itemData name="Added line"  defStyleNum="dsString" color="#0000FF"/>
      <itemData name="Comment"  defStyleNum="dsComment"/>
    </itemDatas>
  </highlighting>
  <general>
    <keywords casesensitive="1" />
  </general>
</language>
