home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
con2v766.zip
/
colore01.zip
/
includes
/
scripts
/
colorer.hrc
< prev
next >
Wrap
Text File
|
2000-03-05
|
6KB
|
167 lines
<!--
Colorer HRC Description v2.0
With Help of:
ANR Daemon, <anrdaemon@mtu-net.ru> Hell corp.
Full RegExp code. Ideally for syntax checking
cail: changes for version 3craze
-->
<define name="hrcString" value="dStrings">
<define name="hrcString2" value="dDefText">
<define name="hrcComment" value="dComments">
<define name="hrcTag" value="dResWords">
<define name="hrcWord" value="dParams">
<define name="hrcVar" value="dLabels">
<scheme name="hrccomment">
<block start="/(<!--)/" end="/(-->)/" scheme="Comment" color0="hrcComment">
</scheme>
<scheme Name="clColorer">
<include scheme="hrccomment">
<block start="/(<scheme)\s/i" end="/(</scheme>)/i"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag"
Scheme="clScheme">
<block Start="/(<define)\s/i" End="/(>)/" Scheme="clDefine"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag">
<block start="/(<include)\s/i" end="/(>)/" scheme="clInclude"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag">
<block start="/(<type)\s/i" end="/(</type>)/i"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag"
Scheme="clType">
</Scheme>
<scheme name="HRC">
<include scheme="clColorer">
<block start="/(<Colorer.*>)/i" end="/(</Colorer>)/i"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag"
Scheme="clColorer">
</Scheme>
<scheme Name="clScheme">
<include scheme="hrccomment">
<regexp start='/(name)\s*(=)\s*([\x22\x27]?)(\w*)(\3)/i'
Color0="hrcWord" Color1="hrcTag" Color2="hrcString2"
Color3="hrcString" Color4="hrcString2">
<keyWords MatchCase="False" Color="hrcTag">
<symb Name=">">
</keyWords>
<!-- RegExp -->
<block start="/(<(block)|(regexp))/i" end="/(>)/" scheme="clRegExp"
Color0="hrcVar" Color1="hrcTag" Color4="hrcTag">
<!-- KeyWord -->
<block Start="/(<KeyWords)\s\M.*(>)/i" End="/(</KeyWords>)/i" scheme="clKeyW"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag" Color3="hrcTag" Color4="hrcTag">
<!-- <Include> -->
<block start="/(<include)\s/i" end="/(>)/" scheme="clIncludeScheme"
Color0="hrcVar" Color1="hrcTag" Color2="hrcTag">
</scheme>
<Scheme Name="clRegExpString">
<RegExp Start="/([\*\.\?\^\$\(\)\[\]\|])/" color0="hrcString2">
<RegExp Start="/(\\y?1??\d)/" color0="hrcString2">
<RegExp Start="/(\\x\d\d)/" color0="dCommentsEx">
<RegExp Start="/(\\.)/" color0="dCommentsEx">
</Scheme>
<Scheme Name="clRegExpString22">
<RegExp Start="/(\\?\x22)/" color0="dError">
<Include Scheme="clRegExpString">
</Scheme>
<scheme name="clRegExpString27">
<regexp Start="/(\\?\x27)/" color0="dError">
<include scheme="clRegExpString">
</scheme>
<scheme name="clIncludeScheme">
<regexp start='/(scheme)\s*(=)\s*([\x22\x27]?)(\w*)(\3)/i'
Color0="hrcWord" Color1="hrcTag" Color2="hrcString2"
Color3="hrcString" Color4="hrcString2">
</scheme>
<scheme name="clInclude">
<regexp start='/(name)\s*(=)\s*([\x22\x27]?)([^\>]+)(\3)/i'
Color0="hrcWord" Color1="hrcTag" Color2="hrcString2"
Color3="hrcString" Color4="hrcString2">
</scheme>
<scheme Name="clType">
<include scheme=hrccomment>
<block start="/\b((match)|(exts))\s*(=)\s*(([\x22\x27])\/)/i" End="/(\/[xi]*\y6)/"
scheme="clRegExpString"
Color0="hrcString" Color1="hrcWord" Color4="hrcTag"
Color5="hrcString2" Color7="hrcString2">
<regexp start='/\s*(=)\s*([\x22\x27])(.*?)(\2)/i'
Color0="hrcTag" Color1="hrcString2"
Color2="hrcString" Color3="hrcString2">
<regexp start='/\s*(=)\s*([^\s\<\>\x22\x27]+)/i' Color0="hrcTag" Color1="hrcString">
<KeyWords MatchCase="false" color="hrcWord">
<Word Name="value">
<Word Name="type">
<Word Name="match">
<Word Name="descr">
<Word Name="name">
</KeyWords>
<KeyWords MatchCase="false" color="Green">
<word Name="fullback">
<word Name="backparse">
<word Name="maxlinelen">
<word Name="brcolor">
<word Name="brtype">
<word Name="color">
<word Name="row">
<word Name="col">
<word Name="useht">
<word Name="separator">
</KeyWords>
<KeyWords MatchCase="false" Color="hrcTag">
<Word Name="<load">
<Word Name="<switch">
<Word Name="<scheme">
<Word Name="<colors" color="Red">
<Word Name="<params" color="Red">
<symb Name=">"><symb Name=">"><symb Name="=">
</KeyWords>
</scheme>
<scheme Name="clDefine">
<regexp start='/((Name)|(value))\s*(=)\s*([\x22\x27]?)([\\\/\w\#\$\%]+?)(\5)/i'
Color0="hrcWord" Color3="hrcTag" Color4="hrcString2"
Color5="hrcString" Color6="hrcString2">
</Scheme>
<scheme Name="clRegExp">
<block start="/\b((start)|(end))\s*(=)\s*('\/)/i" end="/(\/[xi]*')/"
scheme="clRegExpString27"
Color0="hrcString" Color1="hrcWord" Color4="hrcTag"
Color5="hrcString2" Color6="hrcString2">
<block start='/\b((Start)|(end))\s*(=)\s*("\/)/i' end="/(\/[xi]*\x22)/"
scheme="clRegExpString22"
Color0="hrcString" Color1="hrcWord" Color4="hrcTag"
Color5="hrcString2" Color6="hrcString2">
<regexp start='/((color[\dabcdefABCDEF])|(scheme)|(prior))\s*(=)\s*([\x22\x27]?)([\/\+\w\#\%\$]+)(\6)/i'
Color0="hrcWord" Color4="hrcTag" Color5="hrcString2"
Color6="hrcString" Color7="hrcString2">
</scheme>
<scheme Name="clKeyW">
<include scheme=hrccomment>
<block Start="/(<(word)|(symb))\s/i" End="/(>)/"
Color0="hrcVar" Color1="hrcTag" Color4="hrcTag"
scheme="clWordSymb">
<regexp start='/((MatchCase)|(color))\s*(=)\s*([\x22\x27]?)([^\s><]+)(\5)/i'
Color0="hrcWord" Color3="hrcTag" Color4="hrcString2"
Color5="hrcString" Color6="hrcString2">
<keyWords MatchCase="False">
<Symb Name=">" Color=hrcTag>
</keyWords>
</scheme>
<scheme name="clWordSymb">
<regexp start='/((Name)|(color))\s*(=)\s*([\x22\x27])(.+?)(\5)/i'
Color0="hrcWord" Color3="hrcTag" Color4="hrcString2"
Color5="hrcString" Color6="hrcString2">
<regexp start='/((Name)|(color))\s*(=)\s*(\w+)/i'
Color0="hrcWord" Color3="hrcTag" Color4="hrcString">
</scheme>