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 >
Text File  |  2000-02-26  |  2KB  |  51 lines

  1. <!--
  2.     Far Colorer description for Diff/Patch files
  3. With Help of
  4.     Timur Safin <timur@lanit.ru>
  5. -->
  6.  
  7. <Define Name="DiffCmdLine"   Value="dStringsEx">
  8. <Define Name="DiffSngLine"   Value="dLabelsEx">
  9. <Define Name="DiffOrg"       Value="dComments">
  10. <Define Name="DiffNew"       Value="dStrings">
  11. <Define Name="DiffChanged"   Value="dStringsEx">
  12. <Define Name="DiffNumb"      Value="dNumbers">
  13. <Define Name="DiffModif"     Value="dLabels">
  14.  
  15. <Scheme Name="Diff">
  16.    <!-- Command line -->
  17.    <RegExp Start="/^(diff\s+\-.*$)/" Color0="DiffCmdLine">
  18.    <RegExp Start="/^(Only\s+.*$)/" Color0="DiffSngLine">
  19.    <RegExp Start="/^(Index.*$)/" Color0="DiffSngLine">
  20.    <!-- context mode -->
  21.    <RegExp Start="/^(\*\*\*\*\*\*\*.*)/" Color0="dComments">
  22.    <RegExp Start="/^(\*.*$)/" Color0="DiffOrg">
  23.    <RegExp Start="/^(\+.*$)/" Color0="DiffNew">
  24.    <RegExp Start="/^(\-\-\-\s.+$)/" Color0="DiffNew">
  25.  
  26.    <RegExp Start="/^(!.*$)/" Color0="DiffChanged">
  27.  
  28.    <!-- default mode -->
  29.    <RegExp Start="/^(<\s.*$)/" Color0="DiffOrg">
  30.    <RegExp Start="/^(>\s.*$)/" Color0="DiffNew">
  31.    <RegExp Start="/^(\d+(\,\d+)?[acd]\d+(,\d+)?$)/" Color0="DiffModif">
  32.  
  33.    <!-- unified mode -->
  34.    <RegExp Start="/^(\-.*$)/" Color0="DiffOrg">
  35.    <RegExp Start="/^(\+.*$)/" Color0="DiffNew">
  36.    <RegExp Start="/^(\@\@.*\@\@$)/" Color0="DiffModif">
  37.  
  38.    <!-- 'normal' mode -->
  39.    <RegExp Start="/^(d\d+\s\d+$)/" Color0="DiffOrg">
  40.    <RegExp Start="/^(a\d+\s\d+$)/" Color0="DiffNew">
  41.  
  42.    <!-- ed mode -->
  43.    <Block  Start="/^(\d+)(a)$/" End="/^(\.)$/" Scheme="Comment" Color0="DiffNew" Color1="DiffNumb" Color2="DiffModif" Color3="DiffModif">
  44.    <Block  Start="/^(\d+)(d)$/" End="/^(\.)$/" Scheme="Comment" Color0="DiffOrg" Color1="DiffNumb" Color2="DiffModif" Color3="DiffModif">
  45.    <Block  Start="/^(\d+)(c)$/" End="/^(\.)$/" Scheme="Comment" Color0="DiffChanged" Color1="DiffNumb" Color2="DiffModif" Color3="DiffModif">
  46.  
  47.    <!-- Numbers -->
  48.    <RegExp Start="/\b(0x|X[\da-fA-F]+)\B/" Color0="DiffNumb">
  49.    <RegExp Start="/(\d+)/" Color0="DiffNumb">
  50. </Scheme>
  51.