53 lines
1.7 KiB
XML
53 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE language SYSTEM "language.dtd">
|
|
<language _name="Diff" version="1.0" _section="Others"
|
|
mimetypes="text/x-diff;text/x-patch"
|
|
extensions="*.diff;*.patch">
|
|
|
|
<pattern-item _name="Removed line">
|
|
<regex>^(<|-)[^\n]*\n</regex>
|
|
</pattern-item>
|
|
|
|
<pattern-item _name="Added line">
|
|
<regex>^(\+|>)[^\n]*\n</regex>
|
|
</pattern-item>
|
|
|
|
<pattern-item _name="Changed line">
|
|
<regex>^\! [^\n]*\n</regex>
|
|
</pattern-item>
|
|
|
|
<syntax-item _name = "Location" style = "Keyword">
|
|
<start-regex>^((@@)|[0-9]|\*\*\*\*)</start-regex>
|
|
<end-regex>\n</end-regex>
|
|
</syntax-item>
|
|
|
|
<syntax-item _name = "Diff file" style = "Data Type">
|
|
<start-regex>^(diff |\+\+\+ |Index: |==== |\*\*\* |--- )</start-regex>
|
|
<end-regex>\n</end-regex>
|
|
</syntax-item>
|
|
|
|
<keyword-list _name = "Special case" style = "String"
|
|
case-sensitive="TRUE"
|
|
match-empty-string-at-beginning = "FALSE"
|
|
match-empty-string-at-end = "TRUE"
|
|
beginning-regex = "^">
|
|
<keyword>Only in .*</keyword>
|
|
<keyword>Files .* and .* are identical$</keyword>
|
|
<keyword>Files .* and .* differ$</keyword>
|
|
<keyword>Binary files .* and .* differ$</keyword>
|
|
<keyword>File .* is a .* while file .* is a .*</keyword>
|
|
<keyword>No newline at end of file .*</keyword>
|
|
</keyword-list>
|
|
|
|
<line-comment _name = "Line Comment" style= "Comment">
|
|
<start-regex>^#</start-regex>
|
|
</line-comment>
|
|
|
|
<styles>
|
|
<style name="Changed line" default_style="Data Type"/>
|
|
<style name="Removed line" default_style="Others"/>
|
|
<style name="Added line" default_style="String"/>
|
|
</styles>
|
|
|
|
</language>
|