@@ -89,8 +89,7 @@ var xml_grammar = {
89
89
," doctype" : " meta"
90
90
," meta" : " meta"
91
91
," cdata" : " atom"
92
- ," open_tag" : " tag"
93
- ," close_tag" : " tag"
92
+ ," tag" : " tag"
94
93
," attribute" : " attribute"
95
94
," string" : " string"
96
95
," atom" : " atom"
@@ -131,8 +130,8 @@ var xml_grammar = {
131
130
" Syntax" : {
132
131
133
132
" tag_att" : " 'id'.attribute unique_att '=' string unique_id | attribute unique_att '=' (string | number)"
134
- ," start_tag" : " open_tag tag_ctx tag_opened tag_att* ('>'.tag | '/>'.tag tag_autoclosed) \\ tag_ctx"
135
- ," end_tag" : " close_tag tag_closed"
133
+ ," start_tag" : " open_tag.tag tag_ctx tag_opened tag_att* ('>'.tag | '/>'.tag tag_autoclosed) \\ tag_ctx"
134
+ ," end_tag" : " close_tag.tag tag_closed"
136
135
," xml" : " (^^1 declaration? doctype?) (declaration.error out_of_place | doctype.error out_of_place | comment | meta | cdata | start_tag | end_tag | atom | text)*"
137
136
138
137
},
@@ -159,23 +158,21 @@ var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
159
158
160
159
Result:
161
160
162
- ![ xml-grammar-1] ( /test/grammar-xml-annotations-1 .png )
163
- ![ xml-grammar-2] ( /test/grammar-xml-annotations- 2.png )
161
+ ![ xml-grammar-1] ( /test/grammar-xml.png )
162
+ ![ xml-grammar-2] ( /test/grammar-xml-2.png )
164
163
165
164
166
165
167
166
###Other Examples:
168
167
169
168
170
169
![ js-recursive-grammar] ( /test/grammar-js-recursion.png )
171
- ![ js-recursive-grammar] ( /test/grammar-js-recursion-2.png )
172
-
170
+ ![ js-recursive-grammar-autocomplete] ( /test/grammar-js-recursion-2.png )
173
171
174
172
![ css-grammar] ( /test/grammar-css.png )
175
173
176
-
177
174
![ python-grammar] ( /test/grammar-python.png )
178
175
179
-
180
176
![ php-grammar] ( /test/grammar-php.png )
181
177
178
+ ![ scheme-grammar] ( /test/grammar-scheme.png )
0 commit comments