summaryrefslogtreecommitdiff
path: root/lib/prado/framework/3rdParty/TextHighlighter/Text/prado.xml
blob: 480b0bbe7379fe339595bc7903b51915ff4c1dc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<!-- $Id: xml.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ -->

<highlight lang="prado" case="no">

  <authors>
    <author name="Andrey Demenev" email="demenev@gmail.com"/>
  </authors>


  <default innerClass="code" />

  <region name="cdata" delimClass="comment" innerClass="comment"
          start="\&lt;\!\[CDATA\[" end="\]\]\&gt;">
  </region>

  <region name="comment" delimClass="comment" innerClass="comment"
          start="\&lt;!--" end="--\&gt;">
  </region>

  <region name="tag" delimClass="brackets" innerClass="code" start="\&lt;[\?\/]?" end="[\/\?]?\&gt;">
  	<contains block="pradoComponent"/>
    <contains block="tagname"/>
    <contains region="param"/>
    <contains block="paramname"/>
    
  </region>

  <block name="pradoComponent" match="(?&lt;=[\&lt;\/?])com:\w+" innerClass="special" contained="yes"/>
  <block name="tagname" match="(?&lt;=[\&lt;\/?])[\w\-\:]+" innerClass="reserved" contained="yes"/>

  <block name="paramname" match="[\w\-\:]+" innerClass="var" contained="yes"/>

  <block name="entity" match="(&amp;|%)[\w\-\.]+;" innerClass="special" />

  <region name="param" start="&quot;" end="&quot;" delimClass="quotes" innerClass="string" contained="yes">
    <contains block="entity"/>
  </region>

</highlight>