summaryrefslogtreecommitdiff
path: root/lib/prado/framework/3rdParty/TextHighlighter/Text/dtd.xml
blob: 8e79531362a09ae3647eacb57c5a427cd61bda42 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<!-- $Id: dtd.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ -->

<highlight lang="dtd" case="yes">

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


  <default innerClass="code" />

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

  <region name="redecl" start="\&lt;\!\[" end="\]\]\&gt;" delimClass="brackets" 
          innerClass="code" never-contained="yes">
    <contains all="yes" />
  </region>

  <region name="tag" start="\&lt;" end="\&gt;" delimClass="brackets" 
          innerClass="code" >
    <contains all="yes" />
    <onlyin region="redecl"/>
  </region>

  <region name="brackets" start="\(" end="\)" delimClass="brackets" 
          innerClass="code" contained="yes">
    <onlyin region="tag"/>
    <onlyin region="brackets"/>
    <contains block="entity" />
    <contains block="identifier" />
  </region>

  <region name="strsingle" start="'" end="'" delimClass="quotes" 
          innerClass="string" contained="yes">
    <onlyin region="tag"/>
    <contains block="entity" />
  </region>

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

  <block name="tagname" match="(?&lt;=\&lt;)!(ENTITY|ATTLIST|ELEMENT|NOTATION)\b" 
         innerClass="var" contained="yes">
    <onlyin region="tag"/>
  </block>

  <block name="reserved" match="\s(#(IMPLIED|REQUIRED|FIXED))|CDATA|ENTITY|NOTATION|NMTOKENS?|PUBLIC|SYSTEM\b" 
         innerClass="reserved" contained="yes">
    <onlyin region="tag"/>
  </block>

  <block name="pcdata" match="#PCDATA\b" 
         innerClass="reserved" contained="yes" />

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

  <block name="identifier" match="[a-z][a-z\d\-\,:]+" 
         innerClass="identifier" contained="yes" case="no"/>

</highlight>