PageRenderTime 37ms CodeModel.GetById 32ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/org/gjt/sp/jedit/syntax/xmode.dtd

#
Document Type Definition | 164 lines | 137 code | 27 blank | 0 comment | 0 complexity | 19aad5fac40481384a413da616c80574 MD5 | raw file
  1<!-- Syntax tokens -->
  2<!ENTITY % tokens "( NULL | COMMENT1 | COMMENT2 | COMMENT3 | COMMENT4 |
  3	DIGIT | FUNCTION | INVALID | KEYWORD1 | KEYWORD2 | KEYWORD3 | KEYWORD4 |
  4	LABEL | LITERAL1 | LITERAL2 | LITERAL3 | LITERAL4 | MARKUP | OPERATOR )" >
  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-position-mix 'AT_LINE_START %att-bool; "FALSE"
 10	AT_WHITESPACE_END %att-bool; "FALSE"
 11	AT_WORD_START %att-bool; "FALSE"' >
 12<!ENTITY % att-exclude-match 'EXCLUDE_MATCH %att-bool; "FALSE"' >
 13<!ENTITY % att-delegate 'DELEGATE CDATA #IMPLIED' >
 14<!ENTITY % att-span-mix 'NO_LINE_BREAK %att-bool; "FALSE"
 15	NO_WORD_BREAK %att-bool; "FALSE"
 16	NO_ESCAPE %att-bool; "FALSE"'>
 17<!ENTITY % att-hash-char 'HASH_CHAR CDATA #REQUIRED' >
 18
 19<!-- MODE element -->
 20<!ELEMENT MODE ( PROPS?, RULES* ) >
 21
 22<!-- MODE children -->
 23<!-- PROPS element -->
 24<!ELEMENT PROPS ( PROPERTY+ ) >
 25
 26<!-- PROPS children -->
 27<!ELEMENT PROPERTY EMPTY >
 28<!ATTLIST PROPERTY
 29	NAME CDATA #REQUIRED
 30	VALUE CDATA #REQUIRED >
 31
 32<!-- RULES element -->
 33<!ELEMENT RULES ( PROPS?, ( IMPORT | TERMINATE | SEQ | SEQ_REGEXP | SPAN
 34	| SPAN_REGEXP | EOL_SPAN | EOL_SPAN_REGEXP | MARK_PREVIOUS
 35	| MARK_FOLLOWING )*, KEYWORDS? ) >
 36
 37<!-- RULES attributes -->
 38<!ATTLIST RULES
 39	SET CDATA "MAIN"
 40	IGNORE_CASE %att-bool; "TRUE"
 41	HIGHLIGHT_DIGITS %att-bool; "FALSE"
 42	DIGIT_RE CDATA #IMPLIED
 43	ESCAPE CDATA #IMPLIED
 44	DEFAULT %tokens; "NULL"
 45	NO_WORD_SEP CDATA "_">
 46
 47<!-- IMPORT element -->
 48<!ELEMENT IMPORT EMPTY >
 49<!ATTLIST IMPORT DELEGATE CDATA #REQUIRED >
 50
 51<!-- TERMINATE element -->
 52<!ELEMENT TERMINATE EMPTY >
 53<!ATTLIST TERMINATE AT_CHAR CDATA #REQUIRED >
 54
 55<!-- SEQ element -->
 56<!ELEMENT SEQ ( #PCDATA ) >
 57
 58<!-- SEQ attributes -->
 59<!ATTLIST SEQ
 60	%att-type;
 61	%att-position-mix;
 62	%att-delegate; >
 63
 64<!-- SEQ_REGEXP element -->
 65<!ELEMENT SEQ_REGEXP ( #PCDATA ) >
 66
 67<!-- SEQ_REGEXP attributes -->
 68<!ATTLIST SEQ_REGEXP
 69	%att-hash-char;
 70	%att-type;
 71	%att-position-mix;
 72	%att-delegate; >
 73
 74<!-- SPAN element -->
 75<!ELEMENT SPAN ( BEGIN, END ) >
 76
 77<!-- SPAN attributes -->
 78<!ATTLIST SPAN
 79	%att-type;
 80	%att-position-mix;
 81	%att-span-mix;
 82	%att-exclude-match;
 83	%att-delegate; >
 84
 85<!-- SPAN_REGEXP element -->
 86<!ELEMENT SPAN_REGEXP ( BEGIN, END ) >
 87
 88<!-- SPAN_REGEXP attributes -->
 89<!ATTLIST SPAN_REGEXP
 90	%att-hash-char;
 91	%att-type;
 92	%att-position-mix;
 93	%att-span-mix;
 94	%att-exclude-match;
 95	%att-delegate; >
 96
 97<!-- SPAN and SPAN_REGEXP children -->
 98<!ELEMENT BEGIN ( #PCDATA ) >
 99<!ATTLIST BEGIN %att-position-mix; >
100<!ELEMENT END ( #PCDATA ) >
101<!ATTLIST END %att-position-mix; >
102
103<!-- EOL_SPAN element -->
104<!ELEMENT EOL_SPAN ( #PCDATA ) >
105
106<!-- EOL_SPAN attributes -->
107<!ATTLIST EOL_SPAN
108	%att-type;
109	%att-position-mix;
110	%att-exclude-match;
111	%att-delegate; >
112
113<!-- EOL_SPAN_REGEXP element -->
114<!ELEMENT EOL_SPAN_REGEXP ( #PCDATA ) >
115
116<!-- EOL_SPAN_REGEXP attributes -->
117<!ATTLIST EOL_SPAN_REGEXP
118	%att-hash-char;
119	%att-type;
120	%att-position-mix;
121	%att-exclude-match;
122	%att-delegate; >
123
124<!-- MARK_FOLLOWING element -->
125<!ELEMENT MARK_FOLLOWING ( #PCDATA ) >
126
127<!-- MARK_FOLLOWING attributes -->
128<!ATTLIST MARK_FOLLOWING
129	%att-type;
130	%att-position-mix;
131	%att-exclude-match; >
132
133<!-- MARK_PREVIOUS element -->
134<!ELEMENT MARK_PREVIOUS ( #PCDATA ) >
135
136<!-- MARK_PREVIOUS attributes -->
137<!ATTLIST MARK_PREVIOUS
138	%att-type;
139	%att-position-mix;
140	%att-exclude-match; >
141
142<!-- KEYWORDS element -->
143<!ELEMENT KEYWORDS (%tokens;)+ >
144
145<!-- KEYWORDS children -->
146<!ELEMENT COMMENT1 ( #PCDATA ) >
147<!ELEMENT COMMENT2 ( #PCDATA ) >
148<!ELEMENT COMMENT3 ( #PCDATA ) >
149<!ELEMENT COMMENT4 ( #PCDATA ) >
150<!ELEMENT DIGIT ( #PCDATA ) >
151<!ELEMENT FUNCTION ( #PCDATA ) >
152<!ELEMENT KEYWORD1 ( #PCDATA ) >
153<!ELEMENT KEYWORD2 ( #PCDATA ) >
154<!ELEMENT KEYWORD3 ( #PCDATA ) >
155<!ELEMENT KEYWORD4 ( #PCDATA ) >
156<!ELEMENT LABEL ( #PCDATA ) >
157<!ELEMENT LITERAL1 ( #PCDATA ) >
158<!ELEMENT LITERAL2 ( #PCDATA ) >
159<!ELEMENT LITERAL3 ( #PCDATA ) >
160<!ELEMENT LITERAL4 ( #PCDATA ) >
161<!ELEMENT MARKUP ( #PCDATA ) >
162<!ELEMENT NULL ( #PCDATA ) >
163<!ELEMENT OPERATOR ( #PCDATA ) >
164<!ELEMENT INVALID ( #PCDATA ) >