home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
con2v766.zip
/
colore01.zip
/
includes
/
scripts
/
diff.hrc
< prev
next >
Wrap
Text File
|
2000-02-26
|
2KB
|
51 lines
<!--
Far Colorer description for Diff/Patch files
With Help of
Timur Safin <timur@lanit.ru>
-->
<Define Name="DiffCmdLine" Value="dStringsEx">
<Define Name="DiffSngLine" Value="dLabelsEx">
<Define Name="DiffOrg" Value="dComments">
<Define Name="DiffNew" Value="dStrings">
<Define Name="DiffChanged" Value="dStringsEx">
<Define Name="DiffNumb" Value="dNumbers">
<Define Name="DiffModif" Value="dLabels">
<Scheme Name="Diff">
<!-- Command line -->
<RegExp Start="/^(diff\s+\-.*$)/" Color0="DiffCmdLine">
<RegExp Start="/^(Only\s+.*$)/" Color0="DiffSngLine">
<RegExp Start="/^(Index.*$)/" Color0="DiffSngLine">
<!-- context mode -->
<RegExp Start="/^(\*\*\*\*\*\*\*.*)/" Color0="dComments">
<RegExp Start="/^(\*.*$)/" Color0="DiffOrg">
<RegExp Start="/^(\+.*$)/" Color0="DiffNew">
<RegExp Start="/^(\-\-\-\s.+$)/" Color0="DiffNew">
<RegExp Start="/^(!.*$)/" Color0="DiffChanged">
<!-- default mode -->
<RegExp Start="/^(<\s.*$)/" Color0="DiffOrg">
<RegExp Start="/^(>\s.*$)/" Color0="DiffNew">
<RegExp Start="/^(\d+(\,\d+)?[acd]\d+(,\d+)?$)/" Color0="DiffModif">
<!-- unified mode -->
<RegExp Start="/^(\-.*$)/" Color0="DiffOrg">
<RegExp Start="/^(\+.*$)/" Color0="DiffNew">
<RegExp Start="/^(\@\@.*\@\@$)/" Color0="DiffModif">
<!-- 'normal' mode -->
<RegExp Start="/^(d\d+\s\d+$)/" Color0="DiffOrg">
<RegExp Start="/^(a\d+\s\d+$)/" Color0="DiffNew">
<!-- ed mode -->
<Block Start="/^(\d+)(a)$/" End="/^(\.)$/" Scheme="Comment" Color0="DiffNew" Color1="DiffNumb" Color2="DiffModif" Color3="DiffModif">
<Block Start="/^(\d+)(d)$/" End="/^(\.)$/" Scheme="Comment" Color0="DiffOrg" Color1="DiffNumb" Color2="DiffModif" Color3="DiffModif">
<Block Start="/^(\d+)(c)$/" End="/^(\.)$/" Scheme="Comment" Color0="DiffChanged" Color1="DiffNumb" Color2="DiffModif" Color3="DiffModif">
<!-- Numbers -->
<RegExp Start="/\b(0x|X[\da-fA-F]+)\B/" Color0="DiffNumb">
<RegExp Start="/(\d+)/" Color0="DiffNumb">
</Scheme>