dtd.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0"?>
  2. <!-- $Id: dtd.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ -->
  3. <highlight lang="dtd" case="yes">
  4. <authors>
  5. <author name="Andrey Demenev" email="demenev@gmail.com"/>
  6. </authors>
  7. <default innerClass="code" />
  8. <region name="comment" delimClass="comment" innerClass="comment"
  9. start="\&lt;!--" end="--\&gt;">
  10. </region>
  11. <region name="redecl" start="\&lt;\!\[" end="\]\]\&gt;" delimClass="brackets"
  12. innerClass="code" never-contained="yes">
  13. <contains all="yes" />
  14. </region>
  15. <region name="tag" start="\&lt;" end="\&gt;" delimClass="brackets"
  16. innerClass="code" >
  17. <contains all="yes" />
  18. <onlyin region="redecl"/>
  19. </region>
  20. <region name="brackets" start="\(" end="\)" delimClass="brackets"
  21. innerClass="code" contained="yes">
  22. <onlyin region="tag"/>
  23. <onlyin region="brackets"/>
  24. <contains block="entity" />
  25. <contains block="identifier" />
  26. </region>
  27. <region name="strsingle" start="'" end="'" delimClass="quotes"
  28. innerClass="string" contained="yes">
  29. <onlyin region="tag"/>
  30. <contains block="entity" />
  31. </region>
  32. <region name="strdouble" start="&quot;" end="&quot;" delimClass="quotes"
  33. innerClass="string" contained="yes">
  34. <onlyin region="tag"/>
  35. <contains block="entity" />
  36. </region>
  37. <block name="tagname" match="(?&lt;=\&lt;)!(ENTITY|ATTLIST|ELEMENT|NOTATION)\b"
  38. innerClass="var" contained="yes">
  39. <onlyin region="tag"/>
  40. </block>
  41. <block name="reserved" match="\s(#(IMPLIED|REQUIRED|FIXED))|CDATA|ENTITY|NOTATION|NMTOKENS?|PUBLIC|SYSTEM\b"
  42. innerClass="reserved" contained="yes">
  43. <onlyin region="tag"/>
  44. </block>
  45. <block name="pcdata" match="#PCDATA\b"
  46. innerClass="reserved" contained="yes" />
  47. <block name="entity" match="(\&amp;|\%)[\w\-\.]+;" innerClass="special" />
  48. <block name="identifier" match="[a-z][a-z\d\-\,:]+"
  49. innerClass="identifier" contained="yes" case="no"/>
  50. </highlight>