tree-sitter-aspx 0.0.0-stage → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1484 @@
1
+ {
2
+ "$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
3
+ "name": "aspx",
4
+ "word": "_name",
5
+ "rules": {
6
+ "source_file": {
7
+ "type": "CHOICE",
8
+ "members": [
9
+ {
10
+ "type": "CHOICE",
11
+ "members": [
12
+ {
13
+ "type": "SYMBOL",
14
+ "name": "handler_file"
15
+ },
16
+ {
17
+ "type": "SYMBOL",
18
+ "name": "document"
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "type": "BLANK"
24
+ }
25
+ ]
26
+ },
27
+ "document": {
28
+ "type": "REPEAT1",
29
+ "content": {
30
+ "type": "SYMBOL",
31
+ "name": "_top"
32
+ }
33
+ },
34
+ "handler_file": {
35
+ "type": "SEQ",
36
+ "members": [
37
+ {
38
+ "type": "SYMBOL",
39
+ "name": "handler_directive"
40
+ },
41
+ {
42
+ "type": "REPEAT",
43
+ "content": {
44
+ "type": "CHOICE",
45
+ "members": [
46
+ {
47
+ "type": "SYMBOL",
48
+ "name": "server_comment"
49
+ },
50
+ {
51
+ "type": "SYMBOL",
52
+ "name": "script_element"
53
+ },
54
+ {
55
+ "type": "ALIAS",
56
+ "content": {
57
+ "type": "SYMBOL",
58
+ "name": "handler_text"
59
+ },
60
+ "named": true,
61
+ "value": "handler_code"
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ "_top": {
69
+ "type": "CHOICE",
70
+ "members": [
71
+ {
72
+ "type": "SYMBOL",
73
+ "name": "_content"
74
+ },
75
+ {
76
+ "type": "SYMBOL",
77
+ "name": "end_tag"
78
+ }
79
+ ]
80
+ },
81
+ "_content": {
82
+ "type": "CHOICE",
83
+ "members": [
84
+ {
85
+ "type": "SYMBOL",
86
+ "name": "directive"
87
+ },
88
+ {
89
+ "type": "SYMBOL",
90
+ "name": "server_comment"
91
+ },
92
+ {
93
+ "type": "SYMBOL",
94
+ "name": "html_comment"
95
+ },
96
+ {
97
+ "type": "SYMBOL",
98
+ "name": "_nugget"
99
+ },
100
+ {
101
+ "type": "SYMBOL",
102
+ "name": "script_element"
103
+ },
104
+ {
105
+ "type": "SYMBOL",
106
+ "name": "style_element"
107
+ },
108
+ {
109
+ "type": "SYMBOL",
110
+ "name": "void_element"
111
+ },
112
+ {
113
+ "type": "SYMBOL",
114
+ "name": "self_closing_element"
115
+ },
116
+ {
117
+ "type": "SYMBOL",
118
+ "name": "element"
119
+ },
120
+ {
121
+ "type": "SYMBOL",
122
+ "name": "doctype"
123
+ },
124
+ {
125
+ "type": "SYMBOL",
126
+ "name": "text"
127
+ }
128
+ ]
129
+ },
130
+ "directive": {
131
+ "type": "SEQ",
132
+ "members": [
133
+ {
134
+ "type": "STRING",
135
+ "value": "<%@"
136
+ },
137
+ {
138
+ "type": "FIELD",
139
+ "name": "name",
140
+ "content": {
141
+ "type": "SYMBOL",
142
+ "name": "directive_name"
143
+ }
144
+ },
145
+ {
146
+ "type": "REPEAT",
147
+ "content": {
148
+ "type": "SYMBOL",
149
+ "name": "_attribute"
150
+ }
151
+ },
152
+ {
153
+ "type": "STRING",
154
+ "value": "%>"
155
+ }
156
+ ]
157
+ },
158
+ "handler_directive": {
159
+ "type": "SEQ",
160
+ "members": [
161
+ {
162
+ "type": "STRING",
163
+ "value": "<%@"
164
+ },
165
+ {
166
+ "type": "FIELD",
167
+ "name": "name",
168
+ "content": {
169
+ "type": "ALIAS",
170
+ "content": {
171
+ "type": "CHOICE",
172
+ "members": [
173
+ {
174
+ "type": "SYMBOL",
175
+ "name": "web_handler_name"
176
+ },
177
+ {
178
+ "type": "SYMBOL",
179
+ "name": "web_service_name"
180
+ }
181
+ ]
182
+ },
183
+ "named": true,
184
+ "value": "directive_name"
185
+ }
186
+ },
187
+ {
188
+ "type": "REPEAT",
189
+ "content": {
190
+ "type": "SYMBOL",
191
+ "name": "_attribute"
192
+ }
193
+ },
194
+ {
195
+ "type": "STRING",
196
+ "value": "%>"
197
+ }
198
+ ]
199
+ },
200
+ "_name": {
201
+ "type": "PATTERN",
202
+ "value": "[A-Za-z_][A-Za-z0-9_.:-]*"
203
+ },
204
+ "directive_name": {
205
+ "type": "SYMBOL",
206
+ "name": "_name"
207
+ },
208
+ "web_handler_name": {
209
+ "type": "CHOICE",
210
+ "members": [
211
+ {
212
+ "type": "STRING",
213
+ "value": "WebHandler"
214
+ },
215
+ {
216
+ "type": "STRING",
217
+ "value": "webhandler"
218
+ },
219
+ {
220
+ "type": "STRING",
221
+ "value": "WEBHANDLER"
222
+ }
223
+ ]
224
+ },
225
+ "web_service_name": {
226
+ "type": "CHOICE",
227
+ "members": [
228
+ {
229
+ "type": "STRING",
230
+ "value": "WebService"
231
+ },
232
+ {
233
+ "type": "STRING",
234
+ "value": "webservice"
235
+ },
236
+ {
237
+ "type": "STRING",
238
+ "value": "WEBSERVICE"
239
+ }
240
+ ]
241
+ },
242
+ "language_attribute": {
243
+ "type": "SEQ",
244
+ "members": [
245
+ {
246
+ "type": "FIELD",
247
+ "name": "name",
248
+ "content": {
249
+ "type": "ALIAS",
250
+ "content": {
251
+ "type": "SYMBOL",
252
+ "name": "language_name"
253
+ },
254
+ "named": true,
255
+ "value": "attribute_name"
256
+ }
257
+ },
258
+ {
259
+ "type": "STRING",
260
+ "value": "="
261
+ },
262
+ {
263
+ "type": "CHOICE",
264
+ "members": [
265
+ {
266
+ "type": "SEQ",
267
+ "members": [
268
+ {
269
+ "type": "STRING",
270
+ "value": "\""
271
+ },
272
+ {
273
+ "type": "FIELD",
274
+ "name": "value",
275
+ "content": {
276
+ "type": "SYMBOL",
277
+ "name": "_language_value"
278
+ }
279
+ },
280
+ {
281
+ "type": "STRING",
282
+ "value": "\""
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "type": "SEQ",
288
+ "members": [
289
+ {
290
+ "type": "STRING",
291
+ "value": "'"
292
+ },
293
+ {
294
+ "type": "FIELD",
295
+ "name": "value",
296
+ "content": {
297
+ "type": "SYMBOL",
298
+ "name": "_language_value"
299
+ }
300
+ },
301
+ {
302
+ "type": "STRING",
303
+ "value": "'"
304
+ }
305
+ ]
306
+ }
307
+ ]
308
+ }
309
+ ]
310
+ },
311
+ "language_name": {
312
+ "type": "TOKEN",
313
+ "content": {
314
+ "type": "PREC",
315
+ "value": 1,
316
+ "content": {
317
+ "type": "PATTERN",
318
+ "value": "[Ll][Aa][Nn][Gg][Uu][Aa][Gg][Ee]"
319
+ }
320
+ }
321
+ },
322
+ "_language_value": {
323
+ "type": "ALIAS",
324
+ "content": {
325
+ "type": "CHOICE",
326
+ "members": [
327
+ {
328
+ "type": "SYMBOL",
329
+ "name": "_lang_csharp"
330
+ },
331
+ {
332
+ "type": "SYMBOL",
333
+ "name": "_lang_vb"
334
+ },
335
+ {
336
+ "type": "SYMBOL",
337
+ "name": "_lang_other"
338
+ }
339
+ ]
340
+ },
341
+ "named": true,
342
+ "value": "language_value"
343
+ },
344
+ "_attribute": {
345
+ "type": "CHOICE",
346
+ "members": [
347
+ {
348
+ "type": "SYMBOL",
349
+ "name": "language_attribute"
350
+ },
351
+ {
352
+ "type": "SYMBOL",
353
+ "name": "attribute"
354
+ }
355
+ ]
356
+ },
357
+ "attribute": {
358
+ "type": "SEQ",
359
+ "members": [
360
+ {
361
+ "type": "FIELD",
362
+ "name": "name",
363
+ "content": {
364
+ "type": "SYMBOL",
365
+ "name": "attribute_name"
366
+ }
367
+ },
368
+ {
369
+ "type": "CHOICE",
370
+ "members": [
371
+ {
372
+ "type": "SEQ",
373
+ "members": [
374
+ {
375
+ "type": "STRING",
376
+ "value": "="
377
+ },
378
+ {
379
+ "type": "FIELD",
380
+ "name": "value",
381
+ "content": {
382
+ "type": "CHOICE",
383
+ "members": [
384
+ {
385
+ "type": "SYMBOL",
386
+ "name": "quoted_attribute_value"
387
+ },
388
+ {
389
+ "type": "ALIAS",
390
+ "content": {
391
+ "type": "SYMBOL",
392
+ "name": "unquoted_attribute_value"
393
+ },
394
+ "named": true,
395
+ "value": "attribute_value"
396
+ }
397
+ ]
398
+ }
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "type": "BLANK"
404
+ }
405
+ ]
406
+ }
407
+ ]
408
+ },
409
+ "attribute_name": {
410
+ "type": "PATTERN",
411
+ "value": "[A-Za-z_:][A-Za-z0-9_.:-]*"
412
+ },
413
+ "quoted_attribute_value": {
414
+ "type": "CHOICE",
415
+ "members": [
416
+ {
417
+ "type": "SEQ",
418
+ "members": [
419
+ {
420
+ "type": "STRING",
421
+ "value": "\""
422
+ },
423
+ {
424
+ "type": "REPEAT",
425
+ "content": {
426
+ "type": "SYMBOL",
427
+ "name": "_double_quoted_chunk"
428
+ }
429
+ },
430
+ {
431
+ "type": "STRING",
432
+ "value": "\""
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "type": "SEQ",
438
+ "members": [
439
+ {
440
+ "type": "STRING",
441
+ "value": "'"
442
+ },
443
+ {
444
+ "type": "REPEAT",
445
+ "content": {
446
+ "type": "SYMBOL",
447
+ "name": "_single_quoted_chunk"
448
+ }
449
+ },
450
+ {
451
+ "type": "STRING",
452
+ "value": "'"
453
+ }
454
+ ]
455
+ }
456
+ ]
457
+ },
458
+ "_double_quoted_chunk": {
459
+ "type": "CHOICE",
460
+ "members": [
461
+ {
462
+ "type": "SYMBOL",
463
+ "name": "_nugget"
464
+ },
465
+ {
466
+ "type": "SYMBOL",
467
+ "name": "server_comment"
468
+ },
469
+ {
470
+ "type": "ALIAS",
471
+ "content": {
472
+ "type": "PATTERN",
473
+ "value": "[^\"<%]+"
474
+ },
475
+ "named": true,
476
+ "value": "attribute_value"
477
+ },
478
+ {
479
+ "type": "ALIAS",
480
+ "content": {
481
+ "type": "STRING",
482
+ "value": "%"
483
+ },
484
+ "named": true,
485
+ "value": "attribute_value"
486
+ },
487
+ {
488
+ "type": "ALIAS",
489
+ "content": {
490
+ "type": "STRING",
491
+ "value": "<"
492
+ },
493
+ "named": true,
494
+ "value": "attribute_value"
495
+ }
496
+ ]
497
+ },
498
+ "_single_quoted_chunk": {
499
+ "type": "CHOICE",
500
+ "members": [
501
+ {
502
+ "type": "SYMBOL",
503
+ "name": "_nugget"
504
+ },
505
+ {
506
+ "type": "SYMBOL",
507
+ "name": "server_comment"
508
+ },
509
+ {
510
+ "type": "ALIAS",
511
+ "content": {
512
+ "type": "PATTERN",
513
+ "value": "[^'<%]+"
514
+ },
515
+ "named": true,
516
+ "value": "attribute_value"
517
+ },
518
+ {
519
+ "type": "ALIAS",
520
+ "content": {
521
+ "type": "STRING",
522
+ "value": "%"
523
+ },
524
+ "named": true,
525
+ "value": "attribute_value"
526
+ },
527
+ {
528
+ "type": "ALIAS",
529
+ "content": {
530
+ "type": "STRING",
531
+ "value": "<"
532
+ },
533
+ "named": true,
534
+ "value": "attribute_value"
535
+ }
536
+ ]
537
+ },
538
+ "unquoted_attribute_value": {
539
+ "type": "PATTERN",
540
+ "value": "[^\"'=<>\\s`]+"
541
+ },
542
+ "server_comment": {
543
+ "type": "SEQ",
544
+ "members": [
545
+ {
546
+ "type": "STRING",
547
+ "value": "<%--"
548
+ },
549
+ {
550
+ "type": "CHOICE",
551
+ "members": [
552
+ {
553
+ "type": "SYMBOL",
554
+ "name": "server_comment_text"
555
+ },
556
+ {
557
+ "type": "BLANK"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "type": "STRING",
563
+ "value": "--%>"
564
+ }
565
+ ]
566
+ },
567
+ "html_comment": {
568
+ "type": "SEQ",
569
+ "members": [
570
+ {
571
+ "type": "STRING",
572
+ "value": "<!--"
573
+ },
574
+ {
575
+ "type": "REPEAT",
576
+ "content": {
577
+ "type": "CHOICE",
578
+ "members": [
579
+ {
580
+ "type": "SYMBOL",
581
+ "name": "_nugget"
582
+ },
583
+ {
584
+ "type": "SYMBOL",
585
+ "name": "server_comment"
586
+ },
587
+ {
588
+ "type": "SYMBOL",
589
+ "name": "directive"
590
+ },
591
+ {
592
+ "type": "ALIAS",
593
+ "content": {
594
+ "type": "PATTERN",
595
+ "value": "[^-<>]+"
596
+ },
597
+ "named": true,
598
+ "value": "comment_text"
599
+ },
600
+ {
601
+ "type": "ALIAS",
602
+ "content": {
603
+ "type": "STRING",
604
+ "value": "-"
605
+ },
606
+ "named": true,
607
+ "value": "comment_text"
608
+ },
609
+ {
610
+ "type": "ALIAS",
611
+ "content": {
612
+ "type": "STRING",
613
+ "value": "<"
614
+ },
615
+ "named": true,
616
+ "value": "comment_text"
617
+ },
618
+ {
619
+ "type": "ALIAS",
620
+ "content": {
621
+ "type": "STRING",
622
+ "value": ">"
623
+ },
624
+ "named": true,
625
+ "value": "comment_text"
626
+ }
627
+ ]
628
+ }
629
+ },
630
+ {
631
+ "type": "STRING",
632
+ "value": "-->"
633
+ }
634
+ ]
635
+ },
636
+ "_nugget": {
637
+ "type": "CHOICE",
638
+ "members": [
639
+ {
640
+ "type": "SYMBOL",
641
+ "name": "encoded_expression"
642
+ },
643
+ {
644
+ "type": "SYMBOL",
645
+ "name": "output_expression"
646
+ },
647
+ {
648
+ "type": "SYMBOL",
649
+ "name": "binding_expression"
650
+ },
651
+ {
652
+ "type": "SYMBOL",
653
+ "name": "expression_builder"
654
+ },
655
+ {
656
+ "type": "SYMBOL",
657
+ "name": "statement_block"
658
+ }
659
+ ]
660
+ },
661
+ "_embedded_code": {
662
+ "type": "CHOICE",
663
+ "members": [
664
+ {
665
+ "type": "ALIAS",
666
+ "content": {
667
+ "type": "SYMBOL",
668
+ "name": "_code_csharp"
669
+ },
670
+ "named": true,
671
+ "value": "c_sharp_code"
672
+ },
673
+ {
674
+ "type": "ALIAS",
675
+ "content": {
676
+ "type": "SYMBOL",
677
+ "name": "_code_vb"
678
+ },
679
+ "named": true,
680
+ "value": "vb_code"
681
+ }
682
+ ]
683
+ },
684
+ "encoded_expression": {
685
+ "type": "SEQ",
686
+ "members": [
687
+ {
688
+ "type": "STRING",
689
+ "value": "<%:"
690
+ },
691
+ {
692
+ "type": "CHOICE",
693
+ "members": [
694
+ {
695
+ "type": "SYMBOL",
696
+ "name": "_embedded_code"
697
+ },
698
+ {
699
+ "type": "BLANK"
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "type": "STRING",
705
+ "value": "%>"
706
+ }
707
+ ]
708
+ },
709
+ "output_expression": {
710
+ "type": "SEQ",
711
+ "members": [
712
+ {
713
+ "type": "STRING",
714
+ "value": "<%="
715
+ },
716
+ {
717
+ "type": "CHOICE",
718
+ "members": [
719
+ {
720
+ "type": "SYMBOL",
721
+ "name": "_embedded_code"
722
+ },
723
+ {
724
+ "type": "BLANK"
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "type": "STRING",
730
+ "value": "%>"
731
+ }
732
+ ]
733
+ },
734
+ "binding_expression": {
735
+ "type": "SEQ",
736
+ "members": [
737
+ {
738
+ "type": "STRING",
739
+ "value": "<%#"
740
+ },
741
+ {
742
+ "type": "CHOICE",
743
+ "members": [
744
+ {
745
+ "type": "SYMBOL",
746
+ "name": "_embedded_code"
747
+ },
748
+ {
749
+ "type": "BLANK"
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "type": "STRING",
755
+ "value": "%>"
756
+ }
757
+ ]
758
+ },
759
+ "statement_block": {
760
+ "type": "SEQ",
761
+ "members": [
762
+ {
763
+ "type": "STRING",
764
+ "value": "<%"
765
+ },
766
+ {
767
+ "type": "CHOICE",
768
+ "members": [
769
+ {
770
+ "type": "SYMBOL",
771
+ "name": "_embedded_code"
772
+ },
773
+ {
774
+ "type": "BLANK"
775
+ }
776
+ ]
777
+ },
778
+ {
779
+ "type": "STRING",
780
+ "value": "%>"
781
+ }
782
+ ]
783
+ },
784
+ "expression_builder": {
785
+ "type": "SEQ",
786
+ "members": [
787
+ {
788
+ "type": "STRING",
789
+ "value": "<%$"
790
+ },
791
+ {
792
+ "type": "CHOICE",
793
+ "members": [
794
+ {
795
+ "type": "ALIAS",
796
+ "content": {
797
+ "type": "SYMBOL",
798
+ "name": "expression_text"
799
+ },
800
+ "named": true,
801
+ "value": "expression_value"
802
+ },
803
+ {
804
+ "type": "BLANK"
805
+ }
806
+ ]
807
+ },
808
+ {
809
+ "type": "STRING",
810
+ "value": "%>"
811
+ }
812
+ ]
813
+ },
814
+ "script_element": {
815
+ "type": "SEQ",
816
+ "members": [
817
+ {
818
+ "type": "ALIAS",
819
+ "content": {
820
+ "type": "SYMBOL",
821
+ "name": "script_start_tag"
822
+ },
823
+ "named": true,
824
+ "value": "start_tag"
825
+ },
826
+ {
827
+ "type": "CHOICE",
828
+ "members": [
829
+ {
830
+ "type": "CHOICE",
831
+ "members": [
832
+ {
833
+ "type": "ALIAS",
834
+ "content": {
835
+ "type": "SYMBOL",
836
+ "name": "_script_csharp"
837
+ },
838
+ "named": true,
839
+ "value": "c_sharp_code"
840
+ },
841
+ {
842
+ "type": "ALIAS",
843
+ "content": {
844
+ "type": "SYMBOL",
845
+ "name": "_script_vb"
846
+ },
847
+ "named": true,
848
+ "value": "vb_code"
849
+ }
850
+ ]
851
+ },
852
+ {
853
+ "type": "BLANK"
854
+ }
855
+ ]
856
+ },
857
+ {
858
+ "type": "ALIAS",
859
+ "content": {
860
+ "type": "SYMBOL",
861
+ "name": "script_end_tag"
862
+ },
863
+ "named": true,
864
+ "value": "end_tag"
865
+ }
866
+ ]
867
+ },
868
+ "script_start_tag": {
869
+ "type": "SEQ",
870
+ "members": [
871
+ {
872
+ "type": "STRING",
873
+ "value": "<"
874
+ },
875
+ {
876
+ "type": "FIELD",
877
+ "name": "name",
878
+ "content": {
879
+ "type": "ALIAS",
880
+ "content": {
881
+ "type": "SYMBOL",
882
+ "name": "script_tag_name"
883
+ },
884
+ "named": true,
885
+ "value": "tag_name"
886
+ }
887
+ },
888
+ {
889
+ "type": "REPEAT",
890
+ "content": {
891
+ "type": "SYMBOL",
892
+ "name": "_attribute"
893
+ }
894
+ },
895
+ {
896
+ "type": "STRING",
897
+ "value": ">"
898
+ }
899
+ ]
900
+ },
901
+ "script_end_tag": {
902
+ "type": "SEQ",
903
+ "members": [
904
+ {
905
+ "type": "STRING",
906
+ "value": "</"
907
+ },
908
+ {
909
+ "type": "FIELD",
910
+ "name": "name",
911
+ "content": {
912
+ "type": "ALIAS",
913
+ "content": {
914
+ "type": "SYMBOL",
915
+ "name": "script_tag_name"
916
+ },
917
+ "named": true,
918
+ "value": "tag_name"
919
+ }
920
+ },
921
+ {
922
+ "type": "STRING",
923
+ "value": ">"
924
+ }
925
+ ]
926
+ },
927
+ "script_tag_name": {
928
+ "type": "TOKEN",
929
+ "content": {
930
+ "type": "PREC",
931
+ "value": 1,
932
+ "content": {
933
+ "type": "PATTERN",
934
+ "value": "[Ss][Cc][Rr][Ii][Pp][Tt]"
935
+ }
936
+ }
937
+ },
938
+ "style_element": {
939
+ "type": "SEQ",
940
+ "members": [
941
+ {
942
+ "type": "ALIAS",
943
+ "content": {
944
+ "type": "SYMBOL",
945
+ "name": "style_start_tag"
946
+ },
947
+ "named": true,
948
+ "value": "start_tag"
949
+ },
950
+ {
951
+ "type": "CHOICE",
952
+ "members": [
953
+ {
954
+ "type": "SYMBOL",
955
+ "name": "style_text"
956
+ },
957
+ {
958
+ "type": "BLANK"
959
+ }
960
+ ]
961
+ },
962
+ {
963
+ "type": "ALIAS",
964
+ "content": {
965
+ "type": "SYMBOL",
966
+ "name": "style_end_tag"
967
+ },
968
+ "named": true,
969
+ "value": "end_tag"
970
+ }
971
+ ]
972
+ },
973
+ "style_start_tag": {
974
+ "type": "SEQ",
975
+ "members": [
976
+ {
977
+ "type": "STRING",
978
+ "value": "<"
979
+ },
980
+ {
981
+ "type": "FIELD",
982
+ "name": "name",
983
+ "content": {
984
+ "type": "ALIAS",
985
+ "content": {
986
+ "type": "SYMBOL",
987
+ "name": "style_tag_name"
988
+ },
989
+ "named": true,
990
+ "value": "tag_name"
991
+ }
992
+ },
993
+ {
994
+ "type": "REPEAT",
995
+ "content": {
996
+ "type": "SYMBOL",
997
+ "name": "_attribute"
998
+ }
999
+ },
1000
+ {
1001
+ "type": "STRING",
1002
+ "value": ">"
1003
+ }
1004
+ ]
1005
+ },
1006
+ "style_end_tag": {
1007
+ "type": "SEQ",
1008
+ "members": [
1009
+ {
1010
+ "type": "STRING",
1011
+ "value": "</"
1012
+ },
1013
+ {
1014
+ "type": "FIELD",
1015
+ "name": "name",
1016
+ "content": {
1017
+ "type": "ALIAS",
1018
+ "content": {
1019
+ "type": "SYMBOL",
1020
+ "name": "style_tag_name"
1021
+ },
1022
+ "named": true,
1023
+ "value": "tag_name"
1024
+ }
1025
+ },
1026
+ {
1027
+ "type": "STRING",
1028
+ "value": ">"
1029
+ }
1030
+ ]
1031
+ },
1032
+ "style_tag_name": {
1033
+ "type": "TOKEN",
1034
+ "content": {
1035
+ "type": "PREC",
1036
+ "value": 1,
1037
+ "content": {
1038
+ "type": "PATTERN",
1039
+ "value": "[Ss][Tt][Yy][Ll][Ee]"
1040
+ }
1041
+ }
1042
+ },
1043
+ "void_element": {
1044
+ "type": "SEQ",
1045
+ "members": [
1046
+ {
1047
+ "type": "STRING",
1048
+ "value": "<"
1049
+ },
1050
+ {
1051
+ "type": "FIELD",
1052
+ "name": "name",
1053
+ "content": {
1054
+ "type": "ALIAS",
1055
+ "content": {
1056
+ "type": "SYMBOL",
1057
+ "name": "void_tag_name"
1058
+ },
1059
+ "named": true,
1060
+ "value": "tag_name"
1061
+ }
1062
+ },
1063
+ {
1064
+ "type": "REPEAT",
1065
+ "content": {
1066
+ "type": "SYMBOL",
1067
+ "name": "_attribute"
1068
+ }
1069
+ },
1070
+ {
1071
+ "type": "CHOICE",
1072
+ "members": [
1073
+ {
1074
+ "type": "STRING",
1075
+ "value": "/>"
1076
+ },
1077
+ {
1078
+ "type": "STRING",
1079
+ "value": ">"
1080
+ }
1081
+ ]
1082
+ }
1083
+ ]
1084
+ },
1085
+ "void_tag_name": {
1086
+ "type": "CHOICE",
1087
+ "members": [
1088
+ {
1089
+ "type": "TOKEN",
1090
+ "content": {
1091
+ "type": "PREC",
1092
+ "value": 1,
1093
+ "content": {
1094
+ "type": "PATTERN",
1095
+ "value": "[Aa][Rr][Ee][Aa]"
1096
+ }
1097
+ }
1098
+ },
1099
+ {
1100
+ "type": "TOKEN",
1101
+ "content": {
1102
+ "type": "PREC",
1103
+ "value": 1,
1104
+ "content": {
1105
+ "type": "PATTERN",
1106
+ "value": "[Bb][Aa][Ss][Ee]"
1107
+ }
1108
+ }
1109
+ },
1110
+ {
1111
+ "type": "TOKEN",
1112
+ "content": {
1113
+ "type": "PREC",
1114
+ "value": 1,
1115
+ "content": {
1116
+ "type": "PATTERN",
1117
+ "value": "[Bb][Rr]"
1118
+ }
1119
+ }
1120
+ },
1121
+ {
1122
+ "type": "TOKEN",
1123
+ "content": {
1124
+ "type": "PREC",
1125
+ "value": 1,
1126
+ "content": {
1127
+ "type": "PATTERN",
1128
+ "value": "[Cc][Oo][Ll]"
1129
+ }
1130
+ }
1131
+ },
1132
+ {
1133
+ "type": "TOKEN",
1134
+ "content": {
1135
+ "type": "PREC",
1136
+ "value": 1,
1137
+ "content": {
1138
+ "type": "PATTERN",
1139
+ "value": "[Ee][Mm][Bb][Ee][Dd]"
1140
+ }
1141
+ }
1142
+ },
1143
+ {
1144
+ "type": "TOKEN",
1145
+ "content": {
1146
+ "type": "PREC",
1147
+ "value": 1,
1148
+ "content": {
1149
+ "type": "PATTERN",
1150
+ "value": "[Hh][Rr]"
1151
+ }
1152
+ }
1153
+ },
1154
+ {
1155
+ "type": "TOKEN",
1156
+ "content": {
1157
+ "type": "PREC",
1158
+ "value": 1,
1159
+ "content": {
1160
+ "type": "PATTERN",
1161
+ "value": "[Ii][Mm][Gg]"
1162
+ }
1163
+ }
1164
+ },
1165
+ {
1166
+ "type": "TOKEN",
1167
+ "content": {
1168
+ "type": "PREC",
1169
+ "value": 1,
1170
+ "content": {
1171
+ "type": "PATTERN",
1172
+ "value": "[Ii][Nn][Pp][Uu][Tt]"
1173
+ }
1174
+ }
1175
+ },
1176
+ {
1177
+ "type": "TOKEN",
1178
+ "content": {
1179
+ "type": "PREC",
1180
+ "value": 1,
1181
+ "content": {
1182
+ "type": "PATTERN",
1183
+ "value": "[Ll][Ii][Nn][Kk]"
1184
+ }
1185
+ }
1186
+ },
1187
+ {
1188
+ "type": "TOKEN",
1189
+ "content": {
1190
+ "type": "PREC",
1191
+ "value": 1,
1192
+ "content": {
1193
+ "type": "PATTERN",
1194
+ "value": "[Mm][Ee][Tt][Aa]"
1195
+ }
1196
+ }
1197
+ },
1198
+ {
1199
+ "type": "TOKEN",
1200
+ "content": {
1201
+ "type": "PREC",
1202
+ "value": 1,
1203
+ "content": {
1204
+ "type": "PATTERN",
1205
+ "value": "[Pp][Aa][Rr][Aa][Mm]"
1206
+ }
1207
+ }
1208
+ },
1209
+ {
1210
+ "type": "TOKEN",
1211
+ "content": {
1212
+ "type": "PREC",
1213
+ "value": 1,
1214
+ "content": {
1215
+ "type": "PATTERN",
1216
+ "value": "[Ss][Oo][Uu][Rr][Cc][Ee]"
1217
+ }
1218
+ }
1219
+ },
1220
+ {
1221
+ "type": "TOKEN",
1222
+ "content": {
1223
+ "type": "PREC",
1224
+ "value": 1,
1225
+ "content": {
1226
+ "type": "PATTERN",
1227
+ "value": "[Tt][Rr][Aa][Cc][Kk]"
1228
+ }
1229
+ }
1230
+ },
1231
+ {
1232
+ "type": "TOKEN",
1233
+ "content": {
1234
+ "type": "PREC",
1235
+ "value": 1,
1236
+ "content": {
1237
+ "type": "PATTERN",
1238
+ "value": "[Ww][Bb][Rr]"
1239
+ }
1240
+ }
1241
+ }
1242
+ ]
1243
+ },
1244
+ "self_closing_element": {
1245
+ "type": "SEQ",
1246
+ "members": [
1247
+ {
1248
+ "type": "STRING",
1249
+ "value": "<"
1250
+ },
1251
+ {
1252
+ "type": "FIELD",
1253
+ "name": "name",
1254
+ "content": {
1255
+ "type": "SYMBOL",
1256
+ "name": "tag_name"
1257
+ }
1258
+ },
1259
+ {
1260
+ "type": "REPEAT",
1261
+ "content": {
1262
+ "type": "SYMBOL",
1263
+ "name": "_attribute"
1264
+ }
1265
+ },
1266
+ {
1267
+ "type": "STRING",
1268
+ "value": "/>"
1269
+ }
1270
+ ]
1271
+ },
1272
+ "element": {
1273
+ "type": "SEQ",
1274
+ "members": [
1275
+ {
1276
+ "type": "SYMBOL",
1277
+ "name": "start_tag"
1278
+ },
1279
+ {
1280
+ "type": "REPEAT",
1281
+ "content": {
1282
+ "type": "SYMBOL",
1283
+ "name": "_content"
1284
+ }
1285
+ },
1286
+ {
1287
+ "type": "SYMBOL",
1288
+ "name": "end_tag"
1289
+ }
1290
+ ]
1291
+ },
1292
+ "start_tag": {
1293
+ "type": "SEQ",
1294
+ "members": [
1295
+ {
1296
+ "type": "STRING",
1297
+ "value": "<"
1298
+ },
1299
+ {
1300
+ "type": "FIELD",
1301
+ "name": "name",
1302
+ "content": {
1303
+ "type": "SYMBOL",
1304
+ "name": "tag_name"
1305
+ }
1306
+ },
1307
+ {
1308
+ "type": "REPEAT",
1309
+ "content": {
1310
+ "type": "SYMBOL",
1311
+ "name": "_attribute"
1312
+ }
1313
+ },
1314
+ {
1315
+ "type": "STRING",
1316
+ "value": ">"
1317
+ }
1318
+ ]
1319
+ },
1320
+ "end_tag": {
1321
+ "type": "SEQ",
1322
+ "members": [
1323
+ {
1324
+ "type": "STRING",
1325
+ "value": "</"
1326
+ },
1327
+ {
1328
+ "type": "FIELD",
1329
+ "name": "name",
1330
+ "content": {
1331
+ "type": "CHOICE",
1332
+ "members": [
1333
+ {
1334
+ "type": "ALIAS",
1335
+ "content": {
1336
+ "type": "SYMBOL",
1337
+ "name": "script_tag_name"
1338
+ },
1339
+ "named": true,
1340
+ "value": "tag_name"
1341
+ },
1342
+ {
1343
+ "type": "ALIAS",
1344
+ "content": {
1345
+ "type": "SYMBOL",
1346
+ "name": "style_tag_name"
1347
+ },
1348
+ "named": true,
1349
+ "value": "tag_name"
1350
+ },
1351
+ {
1352
+ "type": "ALIAS",
1353
+ "content": {
1354
+ "type": "SYMBOL",
1355
+ "name": "void_tag_name"
1356
+ },
1357
+ "named": true,
1358
+ "value": "tag_name"
1359
+ },
1360
+ {
1361
+ "type": "SYMBOL",
1362
+ "name": "tag_name"
1363
+ }
1364
+ ]
1365
+ }
1366
+ },
1367
+ {
1368
+ "type": "STRING",
1369
+ "value": ">"
1370
+ }
1371
+ ]
1372
+ },
1373
+ "tag_name": {
1374
+ "type": "SYMBOL",
1375
+ "name": "_name"
1376
+ },
1377
+ "doctype": {
1378
+ "type": "SEQ",
1379
+ "members": [
1380
+ {
1381
+ "type": "SYMBOL",
1382
+ "name": "doctype_token"
1383
+ },
1384
+ {
1385
+ "type": "CHOICE",
1386
+ "members": [
1387
+ {
1388
+ "type": "ALIAS",
1389
+ "content": {
1390
+ "type": "PATTERN",
1391
+ "value": "[^>]+"
1392
+ },
1393
+ "named": true,
1394
+ "value": "doctype_declaration"
1395
+ },
1396
+ {
1397
+ "type": "BLANK"
1398
+ }
1399
+ ]
1400
+ },
1401
+ {
1402
+ "type": "STRING",
1403
+ "value": ">"
1404
+ }
1405
+ ]
1406
+ },
1407
+ "doctype_token": {
1408
+ "type": "TOKEN",
1409
+ "content": {
1410
+ "type": "PREC",
1411
+ "value": 1,
1412
+ "content": {
1413
+ "type": "PATTERN",
1414
+ "value": "<![Dd][Oo][Cc][Tt][Yy][Pp][Ee]"
1415
+ }
1416
+ }
1417
+ },
1418
+ "text": {
1419
+ "type": "PATTERN",
1420
+ "value": "[^<\\s][^<]*"
1421
+ }
1422
+ },
1423
+ "extras": [
1424
+ {
1425
+ "type": "PATTERN",
1426
+ "value": "\\s"
1427
+ },
1428
+ {
1429
+ "type": "PATTERN",
1430
+ "value": "\\uFEFF"
1431
+ }
1432
+ ],
1433
+ "conflicts": [],
1434
+ "precedences": [],
1435
+ "externals": [
1436
+ {
1437
+ "type": "SYMBOL",
1438
+ "name": "_lang_csharp"
1439
+ },
1440
+ {
1441
+ "type": "SYMBOL",
1442
+ "name": "_lang_vb"
1443
+ },
1444
+ {
1445
+ "type": "SYMBOL",
1446
+ "name": "_lang_other"
1447
+ },
1448
+ {
1449
+ "type": "SYMBOL",
1450
+ "name": "_code_csharp"
1451
+ },
1452
+ {
1453
+ "type": "SYMBOL",
1454
+ "name": "_code_vb"
1455
+ },
1456
+ {
1457
+ "type": "SYMBOL",
1458
+ "name": "server_comment_text"
1459
+ },
1460
+ {
1461
+ "type": "SYMBOL",
1462
+ "name": "_script_csharp"
1463
+ },
1464
+ {
1465
+ "type": "SYMBOL",
1466
+ "name": "_script_vb"
1467
+ },
1468
+ {
1469
+ "type": "SYMBOL",
1470
+ "name": "style_text"
1471
+ },
1472
+ {
1473
+ "type": "SYMBOL",
1474
+ "name": "expression_text"
1475
+ },
1476
+ {
1477
+ "type": "SYMBOL",
1478
+ "name": "handler_text"
1479
+ }
1480
+ ],
1481
+ "inline": [],
1482
+ "supertypes": [],
1483
+ "reserved": {}
1484
+ }