PageRenderTime 87ms CodeModel.GetById 81ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/org/gjt/sp/jedit/xmode.dtd

#
Document Type Definition | 121 lines | 98 code | 23 blank | 0 comment | 0 complexity | 061cddebfaf0787498bbcaf4bc8eeaa9 MD5 | raw file
  1<!-- Syntax tokens -->
  2<!ENTITY % tokens "( NULL | COMMENT1 | COMMENT2 | LITERAL1 | LITERAL2
  3	| LABEL | KEYWORD1 | KEYWORD2 | KEYWORD3 | FUNCTION
  4	| MARKUP | OPERATOR | DIGIT | INVALID )" >
  5
  6<!-- Entities for attributes shared by multiple rules -->
  7<!ENTITY % att-bool '( TRUE | FALSE )' >
  8<!ENTITY % att-type 'TYPE %tokens; "NULL"' >
  9<!ENTITY % att-at-line-start 'AT_LINE_START %att-bool; "FALSE"' >
 10<!ENTITY % att-exclude-match 'EXCLUDE_MATCH %att-bool; "FALSE"' >
 11
 12<!-- MODE element -->
 13<!ELEMENT MODE ( PROPS?, RULES* ) >
 14
 15<!-- MODE children -->
 16<!-- PROPS element -->
 17<!ELEMENT PROPS ( PROPERTY+ ) >
 18
 19<!-- PROPS children -->
 20<!ELEMENT PROPERTY EMPTY >
 21<!ATTLIST PROPERTY
 22	NAME CDATA #REQUIRED
 23	VALUE CDATA #REQUIRED >
 24
 25<!-- RULES element -->
 26<!ELEMENT RULES ( PROPS?, ( TERMINATE | WHITESPACE | SPAN | EOL_SPAN
 27	 | MARK_PREVIOUS | MARK_FOLLOWING | SEQ )*, KEYWORDS? ) >
 28
 29<!-- RULES attributes -->
 30<!ATTLIST RULES
 31	IGNORE_CASE %att-bool; "FALSE"
 32	HIGHLIGHT_DIGITS %att-bool; "FALSE"
 33	SET CDATA "MAIN"
 34	ESCAPE CDATA #IMPLIED
 35	DEFAULT %tokens; "NULL" >
 36
 37<!-- RULES children -->
 38<!-- TERMINATE element -->
 39<!ELEMENT TERMINATE EMPTY >
 40
 41<!-- TERMINATE attributes -->
 42<!ATTLIST TERMINATE AT_CHAR CDATA #REQUIRED >
 43
 44<!-- WHITESPACE element -->
 45<!ELEMENT WHITESPACE ( #PCDATA ) >
 46
 47<!-- SPAN element -->
 48<!ELEMENT SPAN ( BEGIN, END ) >
 49
 50<!-- SPAN attributes -->
 51<!ATTLIST SPAN
 52	%att-type;
 53	%att-at-line-start;
 54	%att-exclude-match;
 55	NO_LINE_BREAK %att-bool; "FALSE"
 56	NO_WORD_BREAK %att-bool; "FALSE"
 57	DELEGATE CDATA #IMPLIED >
 58
 59<!-- SPAN children -->
 60<!ELEMENT BEGIN ( #PCDATA ) >
 61<!ELEMENT END ( #PCDATA ) >
 62
 63<!-- EOL_SPAN element -->
 64<!ELEMENT EOL_SPAN ( #PCDATA ) >
 65
 66<!-- EOL_SPAN attributes -->
 67<!ATTLIST EOL_SPAN
 68	%att-type;
 69	%att-at-line-start;
 70	%att-exclude-match; >
 71
 72<!-- MARK_PREVIOUS element -->
 73<!ELEMENT MARK_PREVIOUS ( #PCDATA ) >
 74
 75<!-- MARK_PREVIOUS attributes -->
 76<!ATTLIST MARK_PREVIOUS
 77	%att-type;
 78	%att-at-line-start;
 79	%att-exclude-match; >
 80
 81<!-- MARK_FOLLOWING element -->
 82<!ELEMENT MARK_FOLLOWING ( #PCDATA ) >
 83
 84<!-- MARK_FOLLOWING attributes -->
 85<!ATTLIST MARK_FOLLOWING
 86	%att-type;
 87	%att-at-line-start;
 88	%att-exclude-match; >
 89
 90<!-- SEQ element -->
 91<!ELEMENT SEQ ( #PCDATA ) >
 92
 93<!-- SEQ attributes -->
 94<!ATTLIST SEQ
 95	%att-type;
 96	%att-at-line-start; >
 97
 98<!-- KEYWORDS element -->
 99<!ELEMENT KEYWORDS ( NULL | COMMENT1 | COMMENT2 | LITERAL1 | LITERAL2
100	| LABEL | KEYWORD1 | KEYWORD2 | KEYWORD3 | FUNCTION | MARKUP
101	| OPERATOR | DIGIT | INVALID )+ >
102
103<!-- KEYWORDS attributes -->
104<!ATTLIST KEYWORDS
105	IGNORE_CASE %att-bool; "FALSE" >
106
107<!-- KEYWORDS children -->
108<!ELEMENT NULL ( #PCDATA ) >
109<!ELEMENT COMMENT1 ( #PCDATA ) >
110<!ELEMENT COMMENT2 ( #PCDATA ) >
111<!ELEMENT LITERAL1 ( #PCDATA ) >
112<!ELEMENT LITERAL2 ( #PCDATA ) >
113<!ELEMENT LABEL ( #PCDATA ) >
114<!ELEMENT KEYWORD1 ( #PCDATA ) >
115<!ELEMENT KEYWORD2 ( #PCDATA ) >
116<!ELEMENT KEYWORD3 ( #PCDATA ) >
117<!ELEMENT FUNCTION ( #PCDATA ) >
118<!ELEMENT MARKUP ( #PCDATA ) >
119<!ELEMENT OPERATOR ( #PCDATA ) >
120<!ELEMENT DIGIT ( #PCDATA ) >
121<!ELEMENT INVALID ( #PCDATA ) >