home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / con2v766.zip / colore01.zip / includes / _defines / _defines.hrc < prev    next >
Text File  |  2000-08-23  |  3KB  |  73 lines

  1. <!--
  2.   Copyright (c) Cail Lomecb (Igor Ruskih) 1999-2000 <ruiv@uic.nnov.ru>
  3.   This and any other HRC file is part of colorer library.
  4.   You can use, modify, distribute this code or any other part
  5.   of colorer library in sources or in binaries only according
  6.   to Colorer License (see /doc/(rus/)?license.txt for more information).
  7.  
  8.   shared macroses
  9. -->
  10.  
  11. <scheme name="default">
  12. </scheme>
  13.  
  14. <scheme name="mCHexNumb">
  15.    <RegExp Start="/\b (0x|X[\da-fA-F]+)  ([UuLl]+|(i64)|(i128))? \B/x"
  16.            Color0="dNumbHex" Color1="dNumSuffix">
  17. </scheme>
  18.  
  19. <scheme name="mCString">
  20.    <RegExp Start='/("((\\.)|[^\\"])*")/' Color0="dStrings">
  21. </scheme>
  22.  
  23. <scheme name="mFloatNumb">
  24.    <RegExp Start="/\c(\d*\.?\d+(e|E[\-+]?\d+)?)([lLfF]?)\B/"
  25.            Color0="dNumbers" Color2="dNumSuffix">
  26. </scheme>
  27.  
  28. <scheme name="mDecNumb">
  29.    <RegExp Start="/\b(\d+)(([UuLl]+)|(i64)|(i128))?\B/"
  30.            Color0="dNumbDec" Color1="dNumSuffix">
  31. </scheme>
  32.  
  33. <scheme name="mApost">
  34.    <RegExp Start="/\w(')[DLSTMdstml]/" Color0="dStrings">
  35. </scheme>
  36.  
  37. <scheme name="mStdStr">
  38.    <RegExp Start='/(".*?")/' Color0="dStrings">
  39.    <RegExp Start="/('.*?')/" Color0="dStrings">
  40. </scheme>
  41.  
  42. <scheme name="mNetAddresses">
  43.    <!-- Inet address (URL) -->
  44.    <RegExp Start="/\b((((https?)|(ftp)|(news)|(nntp)|(wais)|(wysiwyg)|(gopher)|(javascript)|(castanet)|(about))\:\/\/)|((www)|(ftp)|(news)|(fido)[0-9]*\.)[\w\.\/\\\~\?\-=_#&]+)\M\W|$/i" Prior="Low" Color0="dHttp" Prior="Low">
  45.    <!-- Mail address -->
  46.    <RegExp Start="/((\cmailto\s*\:\s*)?(\<?)[\w\.\~\-_#]+@[\w\.\~\-_#]+)(\>?)/"
  47.            Color0="dEMail" Color2="dStrings" Color3="dStrings" Prior="Low">
  48.    <!-- FTN address -->
  49.    <RegExp Start="/\b((\d+\:)?\d+\/\d+(\.\d+)?(@[\w\.]+)?)\M\W|$/"
  50.            Color0="dEMail" Prior="Low">
  51.    <!--RegExp Start="/\b((\d+\:)?\d+\/\d+(.\d+)?(@[\w\.]+)?)\M\W|$/"
  52.            Color0="dEMail" Prior="Low"-->
  53. </scheme>
  54.  
  55. <scheme name="mPath">
  56.    <!-- Full path -->
  57.    <RegExp Start="/((([A-Za-z]\:)|([\w_~\-\.`'!@#&\$\^\{\}]*\\))[\w_~\-\\\.`'!@#&\$\^\{\}]+)/" Color0="dPath">
  58.    <!-- File name only -->
  59.    <RegExp Start="/([A-Za-z0-9_~\-`'!#&\$\^\{\}]+\.[A-Za-z0-9_~\-`'!@#&\$\^\{\}]{1,5})/" Color0="dPath">
  60. </scheme>
  61.  
  62. <scheme name="Comment">
  63.    <!-- Please, don't laugh - it is almost empty!  -->
  64.    <!-- just add http and e-mail colorization -->
  65.    <RegExp Start="/\c((mailto\s*\:\s*)?(\<?)[\w\.\~\-_#]+@[\w\.\~\-_#]+)(\>?)/"
  66.            Color0="dEMail" Color2="dStrings" Color3="dStrings" Prior="Low">
  67. </scheme>
  68.  
  69. <scheme name="CNestComm">
  70.    <include scheme="Comment">
  71.    <block  start="/(\/\*)/" end="/(\*\/)/" scheme="CNestComm" color0="dComments">
  72. </scheme>
  73.