tree-sitter-aspx 0.0.0-stage → 1.0.0

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,1860 @@
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": "directive"
49
+ },
50
+ {
51
+ "type": "SYMBOL",
52
+ "name": "server_comment"
53
+ },
54
+ {
55
+ "type": "SYMBOL",
56
+ "name": "script_element"
57
+ },
58
+ {
59
+ "type": "SYMBOL",
60
+ "name": "handler_code"
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ ]
66
+ },
67
+ "handler_code": {
68
+ "type": "CHOICE",
69
+ "members": [
70
+ {
71
+ "type": "ALIAS",
72
+ "content": {
73
+ "type": "SYMBOL",
74
+ "name": "_handler_csharp"
75
+ },
76
+ "named": true,
77
+ "value": "c_sharp_code"
78
+ },
79
+ {
80
+ "type": "ALIAS",
81
+ "content": {
82
+ "type": "SYMBOL",
83
+ "name": "_handler_vb"
84
+ },
85
+ "named": true,
86
+ "value": "vb_code"
87
+ }
88
+ ]
89
+ },
90
+ "_top": {
91
+ "type": "CHOICE",
92
+ "members": [
93
+ {
94
+ "type": "SYMBOL",
95
+ "name": "_content"
96
+ },
97
+ {
98
+ "type": "SYMBOL",
99
+ "name": "end_tag"
100
+ }
101
+ ]
102
+ },
103
+ "_content": {
104
+ "type": "CHOICE",
105
+ "members": [
106
+ {
107
+ "type": "SYMBOL",
108
+ "name": "directive"
109
+ },
110
+ {
111
+ "type": "SYMBOL",
112
+ "name": "server_comment"
113
+ },
114
+ {
115
+ "type": "SYMBOL",
116
+ "name": "html_comment"
117
+ },
118
+ {
119
+ "type": "SYMBOL",
120
+ "name": "_nugget"
121
+ },
122
+ {
123
+ "type": "SYMBOL",
124
+ "name": "script_element"
125
+ },
126
+ {
127
+ "type": "SYMBOL",
128
+ "name": "style_element"
129
+ },
130
+ {
131
+ "type": "SYMBOL",
132
+ "name": "void_element"
133
+ },
134
+ {
135
+ "type": "SYMBOL",
136
+ "name": "self_closing_element"
137
+ },
138
+ {
139
+ "type": "SYMBOL",
140
+ "name": "element"
141
+ },
142
+ {
143
+ "type": "SYMBOL",
144
+ "name": "doctype"
145
+ },
146
+ {
147
+ "type": "SYMBOL",
148
+ "name": "cdata_section"
149
+ },
150
+ {
151
+ "type": "SYMBOL",
152
+ "name": "processing_instruction"
153
+ },
154
+ {
155
+ "type": "ALIAS",
156
+ "content": {
157
+ "type": "SYMBOL",
158
+ "name": "stray_end_tag"
159
+ },
160
+ "named": true,
161
+ "value": "end_tag"
162
+ },
163
+ {
164
+ "type": "SYMBOL",
165
+ "name": "text"
166
+ }
167
+ ]
168
+ },
169
+ "directive": {
170
+ "type": "SEQ",
171
+ "members": [
172
+ {
173
+ "type": "STRING",
174
+ "value": "<%@"
175
+ },
176
+ {
177
+ "type": "FIELD",
178
+ "name": "name",
179
+ "content": {
180
+ "type": "SYMBOL",
181
+ "name": "directive_name"
182
+ }
183
+ },
184
+ {
185
+ "type": "REPEAT",
186
+ "content": {
187
+ "type": "SYMBOL",
188
+ "name": "_directive_attribute"
189
+ }
190
+ },
191
+ {
192
+ "type": "STRING",
193
+ "value": "%>"
194
+ }
195
+ ]
196
+ },
197
+ "handler_directive": {
198
+ "type": "SEQ",
199
+ "members": [
200
+ {
201
+ "type": "STRING",
202
+ "value": "<%@"
203
+ },
204
+ {
205
+ "type": "FIELD",
206
+ "name": "name",
207
+ "content": {
208
+ "type": "ALIAS",
209
+ "content": {
210
+ "type": "CHOICE",
211
+ "members": [
212
+ {
213
+ "type": "SYMBOL",
214
+ "name": "web_handler_name"
215
+ },
216
+ {
217
+ "type": "SYMBOL",
218
+ "name": "web_service_name"
219
+ }
220
+ ]
221
+ },
222
+ "named": true,
223
+ "value": "directive_name"
224
+ }
225
+ },
226
+ {
227
+ "type": "REPEAT",
228
+ "content": {
229
+ "type": "SYMBOL",
230
+ "name": "_directive_attribute"
231
+ }
232
+ },
233
+ {
234
+ "type": "STRING",
235
+ "value": "%>"
236
+ }
237
+ ]
238
+ },
239
+ "_name": {
240
+ "type": "PATTERN",
241
+ "value": "[A-Za-z_][A-Za-z0-9_.:-]*"
242
+ },
243
+ "directive_name": {
244
+ "type": "SYMBOL",
245
+ "name": "_name"
246
+ },
247
+ "web_handler_name": {
248
+ "type": "TOKEN",
249
+ "content": {
250
+ "type": "PREC",
251
+ "value": 1,
252
+ "content": {
253
+ "type": "PATTERN",
254
+ "value": "[Ww][Ee][Bb][Hh][Aa][Nn][Dd][Ll][Ee][Rr]"
255
+ }
256
+ }
257
+ },
258
+ "web_service_name": {
259
+ "type": "TOKEN",
260
+ "content": {
261
+ "type": "PREC",
262
+ "value": 1,
263
+ "content": {
264
+ "type": "PATTERN",
265
+ "value": "[Ww][Ee][Bb][Ss][Ee][Rr][Vv][Ii][Cc][Ee]"
266
+ }
267
+ }
268
+ },
269
+ "language_attribute": {
270
+ "type": "SEQ",
271
+ "members": [
272
+ {
273
+ "type": "FIELD",
274
+ "name": "name",
275
+ "content": {
276
+ "type": "ALIAS",
277
+ "content": {
278
+ "type": "SYMBOL",
279
+ "name": "language_name"
280
+ },
281
+ "named": true,
282
+ "value": "attribute_name"
283
+ }
284
+ },
285
+ {
286
+ "type": "STRING",
287
+ "value": "="
288
+ },
289
+ {
290
+ "type": "CHOICE",
291
+ "members": [
292
+ {
293
+ "type": "SEQ",
294
+ "members": [
295
+ {
296
+ "type": "STRING",
297
+ "value": "\""
298
+ },
299
+ {
300
+ "type": "CHOICE",
301
+ "members": [
302
+ {
303
+ "type": "FIELD",
304
+ "name": "value",
305
+ "content": {
306
+ "type": "SYMBOL",
307
+ "name": "_language_value"
308
+ }
309
+ },
310
+ {
311
+ "type": "BLANK"
312
+ }
313
+ ]
314
+ },
315
+ {
316
+ "type": "STRING",
317
+ "value": "\""
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "type": "SEQ",
323
+ "members": [
324
+ {
325
+ "type": "STRING",
326
+ "value": "'"
327
+ },
328
+ {
329
+ "type": "CHOICE",
330
+ "members": [
331
+ {
332
+ "type": "FIELD",
333
+ "name": "value",
334
+ "content": {
335
+ "type": "SYMBOL",
336
+ "name": "_language_value"
337
+ }
338
+ },
339
+ {
340
+ "type": "BLANK"
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "type": "STRING",
346
+ "value": "'"
347
+ }
348
+ ]
349
+ },
350
+ {
351
+ "type": "FIELD",
352
+ "name": "value",
353
+ "content": {
354
+ "type": "SYMBOL",
355
+ "name": "_language_value"
356
+ }
357
+ }
358
+ ]
359
+ }
360
+ ]
361
+ },
362
+ "language_name": {
363
+ "type": "TOKEN",
364
+ "content": {
365
+ "type": "PREC",
366
+ "value": 1,
367
+ "content": {
368
+ "type": "PATTERN",
369
+ "value": "[Ll][Aa][Nn][Gg][Uu][Aa][Gg][Ee]"
370
+ }
371
+ }
372
+ },
373
+ "_language_value": {
374
+ "type": "ALIAS",
375
+ "content": {
376
+ "type": "CHOICE",
377
+ "members": [
378
+ {
379
+ "type": "SYMBOL",
380
+ "name": "_lang_csharp"
381
+ },
382
+ {
383
+ "type": "SYMBOL",
384
+ "name": "_lang_vb"
385
+ },
386
+ {
387
+ "type": "SYMBOL",
388
+ "name": "_lang_other"
389
+ }
390
+ ]
391
+ },
392
+ "named": true,
393
+ "value": "language_value"
394
+ },
395
+ "_directive_attribute": {
396
+ "type": "CHOICE",
397
+ "members": [
398
+ {
399
+ "type": "SYMBOL",
400
+ "name": "language_attribute"
401
+ },
402
+ {
403
+ "type": "SYMBOL",
404
+ "name": "attribute"
405
+ }
406
+ ]
407
+ },
408
+ "attribute": {
409
+ "type": "SEQ",
410
+ "members": [
411
+ {
412
+ "type": "FIELD",
413
+ "name": "name",
414
+ "content": {
415
+ "type": "SYMBOL",
416
+ "name": "attribute_name"
417
+ }
418
+ },
419
+ {
420
+ "type": "CHOICE",
421
+ "members": [
422
+ {
423
+ "type": "SEQ",
424
+ "members": [
425
+ {
426
+ "type": "STRING",
427
+ "value": "="
428
+ },
429
+ {
430
+ "type": "FIELD",
431
+ "name": "value",
432
+ "content": {
433
+ "type": "CHOICE",
434
+ "members": [
435
+ {
436
+ "type": "SYMBOL",
437
+ "name": "quoted_attribute_value"
438
+ },
439
+ {
440
+ "type": "ALIAS",
441
+ "content": {
442
+ "type": "SYMBOL",
443
+ "name": "unquoted_attribute_value"
444
+ },
445
+ "named": true,
446
+ "value": "attribute_value"
447
+ }
448
+ ]
449
+ }
450
+ }
451
+ ]
452
+ },
453
+ {
454
+ "type": "BLANK"
455
+ }
456
+ ]
457
+ }
458
+ ]
459
+ },
460
+ "attribute_name": {
461
+ "type": "PATTERN",
462
+ "value": "[A-Za-z_:][A-Za-z0-9_.:-]*"
463
+ },
464
+ "quoted_attribute_value": {
465
+ "type": "CHOICE",
466
+ "members": [
467
+ {
468
+ "type": "SEQ",
469
+ "members": [
470
+ {
471
+ "type": "STRING",
472
+ "value": "\""
473
+ },
474
+ {
475
+ "type": "REPEAT",
476
+ "content": {
477
+ "type": "SYMBOL",
478
+ "name": "_double_quoted_chunk"
479
+ }
480
+ },
481
+ {
482
+ "type": "STRING",
483
+ "value": "\""
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "type": "SEQ",
489
+ "members": [
490
+ {
491
+ "type": "STRING",
492
+ "value": "'"
493
+ },
494
+ {
495
+ "type": "REPEAT",
496
+ "content": {
497
+ "type": "SYMBOL",
498
+ "name": "_single_quoted_chunk"
499
+ }
500
+ },
501
+ {
502
+ "type": "STRING",
503
+ "value": "'"
504
+ }
505
+ ]
506
+ }
507
+ ]
508
+ },
509
+ "_double_quoted_chunk": {
510
+ "type": "CHOICE",
511
+ "members": [
512
+ {
513
+ "type": "SYMBOL",
514
+ "name": "_nugget"
515
+ },
516
+ {
517
+ "type": "SYMBOL",
518
+ "name": "server_comment"
519
+ },
520
+ {
521
+ "type": "ALIAS",
522
+ "content": {
523
+ "type": "PATTERN",
524
+ "value": "[^\"<%]+"
525
+ },
526
+ "named": true,
527
+ "value": "attribute_value"
528
+ },
529
+ {
530
+ "type": "ALIAS",
531
+ "content": {
532
+ "type": "STRING",
533
+ "value": "%"
534
+ },
535
+ "named": true,
536
+ "value": "attribute_value"
537
+ },
538
+ {
539
+ "type": "ALIAS",
540
+ "content": {
541
+ "type": "STRING",
542
+ "value": "<"
543
+ },
544
+ "named": true,
545
+ "value": "attribute_value"
546
+ }
547
+ ]
548
+ },
549
+ "_single_quoted_chunk": {
550
+ "type": "CHOICE",
551
+ "members": [
552
+ {
553
+ "type": "SYMBOL",
554
+ "name": "_nugget"
555
+ },
556
+ {
557
+ "type": "SYMBOL",
558
+ "name": "server_comment"
559
+ },
560
+ {
561
+ "type": "ALIAS",
562
+ "content": {
563
+ "type": "PATTERN",
564
+ "value": "[^'<%]+"
565
+ },
566
+ "named": true,
567
+ "value": "attribute_value"
568
+ },
569
+ {
570
+ "type": "ALIAS",
571
+ "content": {
572
+ "type": "STRING",
573
+ "value": "%"
574
+ },
575
+ "named": true,
576
+ "value": "attribute_value"
577
+ },
578
+ {
579
+ "type": "ALIAS",
580
+ "content": {
581
+ "type": "STRING",
582
+ "value": "<"
583
+ },
584
+ "named": true,
585
+ "value": "attribute_value"
586
+ }
587
+ ]
588
+ },
589
+ "unquoted_attribute_value": {
590
+ "type": "PATTERN",
591
+ "value": "[^\"'=<>\\s`]+"
592
+ },
593
+ "server_comment": {
594
+ "type": "SEQ",
595
+ "members": [
596
+ {
597
+ "type": "STRING",
598
+ "value": "<%--"
599
+ },
600
+ {
601
+ "type": "CHOICE",
602
+ "members": [
603
+ {
604
+ "type": "SYMBOL",
605
+ "name": "server_comment_text"
606
+ },
607
+ {
608
+ "type": "BLANK"
609
+ }
610
+ ]
611
+ },
612
+ {
613
+ "type": "ALIAS",
614
+ "content": {
615
+ "type": "TOKEN",
616
+ "content": {
617
+ "type": "PATTERN",
618
+ "value": "-*--%>"
619
+ }
620
+ },
621
+ "named": false,
622
+ "value": "--%>"
623
+ }
624
+ ]
625
+ },
626
+ "html_comment": {
627
+ "type": "SEQ",
628
+ "members": [
629
+ {
630
+ "type": "STRING",
631
+ "value": "<!--"
632
+ },
633
+ {
634
+ "type": "REPEAT",
635
+ "content": {
636
+ "type": "CHOICE",
637
+ "members": [
638
+ {
639
+ "type": "SYMBOL",
640
+ "name": "_nugget"
641
+ },
642
+ {
643
+ "type": "SYMBOL",
644
+ "name": "server_comment"
645
+ },
646
+ {
647
+ "type": "SYMBOL",
648
+ "name": "directive"
649
+ },
650
+ {
651
+ "type": "ALIAS",
652
+ "content": {
653
+ "type": "PATTERN",
654
+ "value": "[^-<>]+"
655
+ },
656
+ "named": true,
657
+ "value": "comment_text"
658
+ },
659
+ {
660
+ "type": "ALIAS",
661
+ "content": {
662
+ "type": "STRING",
663
+ "value": "-"
664
+ },
665
+ "named": true,
666
+ "value": "comment_text"
667
+ },
668
+ {
669
+ "type": "ALIAS",
670
+ "content": {
671
+ "type": "STRING",
672
+ "value": "<"
673
+ },
674
+ "named": true,
675
+ "value": "comment_text"
676
+ },
677
+ {
678
+ "type": "ALIAS",
679
+ "content": {
680
+ "type": "STRING",
681
+ "value": ">"
682
+ },
683
+ "named": true,
684
+ "value": "comment_text"
685
+ }
686
+ ]
687
+ }
688
+ },
689
+ {
690
+ "type": "STRING",
691
+ "value": "-->"
692
+ }
693
+ ]
694
+ },
695
+ "_nugget": {
696
+ "type": "CHOICE",
697
+ "members": [
698
+ {
699
+ "type": "SYMBOL",
700
+ "name": "encoded_expression"
701
+ },
702
+ {
703
+ "type": "SYMBOL",
704
+ "name": "output_expression"
705
+ },
706
+ {
707
+ "type": "SYMBOL",
708
+ "name": "binding_expression"
709
+ },
710
+ {
711
+ "type": "SYMBOL",
712
+ "name": "expression_builder"
713
+ },
714
+ {
715
+ "type": "SYMBOL",
716
+ "name": "statement_block"
717
+ }
718
+ ]
719
+ },
720
+ "_embedded_code": {
721
+ "type": "CHOICE",
722
+ "members": [
723
+ {
724
+ "type": "ALIAS",
725
+ "content": {
726
+ "type": "SYMBOL",
727
+ "name": "_code_csharp"
728
+ },
729
+ "named": true,
730
+ "value": "c_sharp_code"
731
+ },
732
+ {
733
+ "type": "ALIAS",
734
+ "content": {
735
+ "type": "SYMBOL",
736
+ "name": "_code_vb"
737
+ },
738
+ "named": true,
739
+ "value": "vb_code"
740
+ }
741
+ ]
742
+ },
743
+ "encoded_expression": {
744
+ "type": "SEQ",
745
+ "members": [
746
+ {
747
+ "type": "STRING",
748
+ "value": "<%:"
749
+ },
750
+ {
751
+ "type": "CHOICE",
752
+ "members": [
753
+ {
754
+ "type": "SYMBOL",
755
+ "name": "_embedded_code"
756
+ },
757
+ {
758
+ "type": "BLANK"
759
+ }
760
+ ]
761
+ },
762
+ {
763
+ "type": "STRING",
764
+ "value": "%>"
765
+ }
766
+ ]
767
+ },
768
+ "output_expression": {
769
+ "type": "SEQ",
770
+ "members": [
771
+ {
772
+ "type": "STRING",
773
+ "value": "<%="
774
+ },
775
+ {
776
+ "type": "CHOICE",
777
+ "members": [
778
+ {
779
+ "type": "SYMBOL",
780
+ "name": "_embedded_code"
781
+ },
782
+ {
783
+ "type": "BLANK"
784
+ }
785
+ ]
786
+ },
787
+ {
788
+ "type": "STRING",
789
+ "value": "%>"
790
+ }
791
+ ]
792
+ },
793
+ "binding_expression": {
794
+ "type": "SEQ",
795
+ "members": [
796
+ {
797
+ "type": "STRING",
798
+ "value": "<%#"
799
+ },
800
+ {
801
+ "type": "CHOICE",
802
+ "members": [
803
+ {
804
+ "type": "SYMBOL",
805
+ "name": "_embedded_code"
806
+ },
807
+ {
808
+ "type": "BLANK"
809
+ }
810
+ ]
811
+ },
812
+ {
813
+ "type": "STRING",
814
+ "value": "%>"
815
+ }
816
+ ]
817
+ },
818
+ "statement_block": {
819
+ "type": "SEQ",
820
+ "members": [
821
+ {
822
+ "type": "STRING",
823
+ "value": "<%"
824
+ },
825
+ {
826
+ "type": "CHOICE",
827
+ "members": [
828
+ {
829
+ "type": "SYMBOL",
830
+ "name": "_embedded_code"
831
+ },
832
+ {
833
+ "type": "BLANK"
834
+ }
835
+ ]
836
+ },
837
+ {
838
+ "type": "STRING",
839
+ "value": "%>"
840
+ }
841
+ ]
842
+ },
843
+ "expression_builder": {
844
+ "type": "SEQ",
845
+ "members": [
846
+ {
847
+ "type": "STRING",
848
+ "value": "<%$"
849
+ },
850
+ {
851
+ "type": "CHOICE",
852
+ "members": [
853
+ {
854
+ "type": "ALIAS",
855
+ "content": {
856
+ "type": "SYMBOL",
857
+ "name": "expression_text"
858
+ },
859
+ "named": true,
860
+ "value": "expression_value"
861
+ },
862
+ {
863
+ "type": "BLANK"
864
+ }
865
+ ]
866
+ },
867
+ {
868
+ "type": "STRING",
869
+ "value": "%>"
870
+ }
871
+ ]
872
+ },
873
+ "script_element": {
874
+ "type": "SEQ",
875
+ "members": [
876
+ {
877
+ "type": "ALIAS",
878
+ "content": {
879
+ "type": "SYMBOL",
880
+ "name": "script_start_tag"
881
+ },
882
+ "named": true,
883
+ "value": "start_tag"
884
+ },
885
+ {
886
+ "type": "REPEAT",
887
+ "content": {
888
+ "type": "CHOICE",
889
+ "members": [
890
+ {
891
+ "type": "ALIAS",
892
+ "content": {
893
+ "type": "SYMBOL",
894
+ "name": "_script_csharp"
895
+ },
896
+ "named": true,
897
+ "value": "c_sharp_code"
898
+ },
899
+ {
900
+ "type": "ALIAS",
901
+ "content": {
902
+ "type": "SYMBOL",
903
+ "name": "_script_vb"
904
+ },
905
+ "named": true,
906
+ "value": "vb_code"
907
+ },
908
+ {
909
+ "type": "SYMBOL",
910
+ "name": "_nugget"
911
+ },
912
+ {
913
+ "type": "SYMBOL",
914
+ "name": "server_comment"
915
+ },
916
+ {
917
+ "type": "SYMBOL",
918
+ "name": "directive"
919
+ }
920
+ ]
921
+ }
922
+ },
923
+ {
924
+ "type": "ALIAS",
925
+ "content": {
926
+ "type": "SYMBOL",
927
+ "name": "script_end_tag"
928
+ },
929
+ "named": true,
930
+ "value": "end_tag"
931
+ }
932
+ ]
933
+ },
934
+ "script_start_tag": {
935
+ "type": "SEQ",
936
+ "members": [
937
+ {
938
+ "type": "STRING",
939
+ "value": "<"
940
+ },
941
+ {
942
+ "type": "FIELD",
943
+ "name": "name",
944
+ "content": {
945
+ "type": "ALIAS",
946
+ "content": {
947
+ "type": "SYMBOL",
948
+ "name": "script_tag_name"
949
+ },
950
+ "named": true,
951
+ "value": "tag_name"
952
+ }
953
+ },
954
+ {
955
+ "type": "SYMBOL",
956
+ "name": "_script_tag_probe"
957
+ },
958
+ {
959
+ "type": "REPEAT",
960
+ "content": {
961
+ "type": "SYMBOL",
962
+ "name": "_tag_item"
963
+ }
964
+ },
965
+ {
966
+ "type": "STRING",
967
+ "value": ">"
968
+ }
969
+ ]
970
+ },
971
+ "script_end_tag": {
972
+ "type": "SEQ",
973
+ "members": [
974
+ {
975
+ "type": "STRING",
976
+ "value": "</"
977
+ },
978
+ {
979
+ "type": "FIELD",
980
+ "name": "name",
981
+ "content": {
982
+ "type": "ALIAS",
983
+ "content": {
984
+ "type": "SYMBOL",
985
+ "name": "script_tag_name"
986
+ },
987
+ "named": true,
988
+ "value": "tag_name"
989
+ }
990
+ },
991
+ {
992
+ "type": "STRING",
993
+ "value": ">"
994
+ }
995
+ ]
996
+ },
997
+ "script_tag_name": {
998
+ "type": "TOKEN",
999
+ "content": {
1000
+ "type": "PREC",
1001
+ "value": 1,
1002
+ "content": {
1003
+ "type": "PATTERN",
1004
+ "value": "[Ss][Cc][Rr][Ii][Pp][Tt]"
1005
+ }
1006
+ }
1007
+ },
1008
+ "style_element": {
1009
+ "type": "SEQ",
1010
+ "members": [
1011
+ {
1012
+ "type": "ALIAS",
1013
+ "content": {
1014
+ "type": "SYMBOL",
1015
+ "name": "style_start_tag"
1016
+ },
1017
+ "named": true,
1018
+ "value": "start_tag"
1019
+ },
1020
+ {
1021
+ "type": "REPEAT",
1022
+ "content": {
1023
+ "type": "CHOICE",
1024
+ "members": [
1025
+ {
1026
+ "type": "SYMBOL",
1027
+ "name": "style_text"
1028
+ },
1029
+ {
1030
+ "type": "SYMBOL",
1031
+ "name": "_nugget"
1032
+ },
1033
+ {
1034
+ "type": "SYMBOL",
1035
+ "name": "server_comment"
1036
+ },
1037
+ {
1038
+ "type": "SYMBOL",
1039
+ "name": "directive"
1040
+ }
1041
+ ]
1042
+ }
1043
+ },
1044
+ {
1045
+ "type": "ALIAS",
1046
+ "content": {
1047
+ "type": "SYMBOL",
1048
+ "name": "style_end_tag"
1049
+ },
1050
+ "named": true,
1051
+ "value": "end_tag"
1052
+ }
1053
+ ]
1054
+ },
1055
+ "style_start_tag": {
1056
+ "type": "SEQ",
1057
+ "members": [
1058
+ {
1059
+ "type": "STRING",
1060
+ "value": "<"
1061
+ },
1062
+ {
1063
+ "type": "FIELD",
1064
+ "name": "name",
1065
+ "content": {
1066
+ "type": "ALIAS",
1067
+ "content": {
1068
+ "type": "SYMBOL",
1069
+ "name": "style_tag_name"
1070
+ },
1071
+ "named": true,
1072
+ "value": "tag_name"
1073
+ }
1074
+ },
1075
+ {
1076
+ "type": "REPEAT",
1077
+ "content": {
1078
+ "type": "SYMBOL",
1079
+ "name": "_tag_item"
1080
+ }
1081
+ },
1082
+ {
1083
+ "type": "STRING",
1084
+ "value": ">"
1085
+ }
1086
+ ]
1087
+ },
1088
+ "style_end_tag": {
1089
+ "type": "SEQ",
1090
+ "members": [
1091
+ {
1092
+ "type": "STRING",
1093
+ "value": "</"
1094
+ },
1095
+ {
1096
+ "type": "FIELD",
1097
+ "name": "name",
1098
+ "content": {
1099
+ "type": "ALIAS",
1100
+ "content": {
1101
+ "type": "SYMBOL",
1102
+ "name": "style_tag_name"
1103
+ },
1104
+ "named": true,
1105
+ "value": "tag_name"
1106
+ }
1107
+ },
1108
+ {
1109
+ "type": "STRING",
1110
+ "value": ">"
1111
+ }
1112
+ ]
1113
+ },
1114
+ "style_tag_name": {
1115
+ "type": "TOKEN",
1116
+ "content": {
1117
+ "type": "PREC",
1118
+ "value": 1,
1119
+ "content": {
1120
+ "type": "PATTERN",
1121
+ "value": "[Ss][Tt][Yy][Ll][Ee]"
1122
+ }
1123
+ }
1124
+ },
1125
+ "void_element": {
1126
+ "type": "SEQ",
1127
+ "members": [
1128
+ {
1129
+ "type": "STRING",
1130
+ "value": "<"
1131
+ },
1132
+ {
1133
+ "type": "FIELD",
1134
+ "name": "name",
1135
+ "content": {
1136
+ "type": "ALIAS",
1137
+ "content": {
1138
+ "type": "SYMBOL",
1139
+ "name": "void_tag_name"
1140
+ },
1141
+ "named": true,
1142
+ "value": "tag_name"
1143
+ }
1144
+ },
1145
+ {
1146
+ "type": "REPEAT",
1147
+ "content": {
1148
+ "type": "SYMBOL",
1149
+ "name": "_tag_item"
1150
+ }
1151
+ },
1152
+ {
1153
+ "type": "CHOICE",
1154
+ "members": [
1155
+ {
1156
+ "type": "STRING",
1157
+ "value": "/>"
1158
+ },
1159
+ {
1160
+ "type": "STRING",
1161
+ "value": ">"
1162
+ }
1163
+ ]
1164
+ }
1165
+ ]
1166
+ },
1167
+ "void_tag_name": {
1168
+ "type": "CHOICE",
1169
+ "members": [
1170
+ {
1171
+ "type": "TOKEN",
1172
+ "content": {
1173
+ "type": "PREC",
1174
+ "value": 1,
1175
+ "content": {
1176
+ "type": "PATTERN",
1177
+ "value": "[Aa][Rr][Ee][Aa]"
1178
+ }
1179
+ }
1180
+ },
1181
+ {
1182
+ "type": "TOKEN",
1183
+ "content": {
1184
+ "type": "PREC",
1185
+ "value": 1,
1186
+ "content": {
1187
+ "type": "PATTERN",
1188
+ "value": "[Bb][Aa][Ss][Ee]"
1189
+ }
1190
+ }
1191
+ },
1192
+ {
1193
+ "type": "TOKEN",
1194
+ "content": {
1195
+ "type": "PREC",
1196
+ "value": 1,
1197
+ "content": {
1198
+ "type": "PATTERN",
1199
+ "value": "[Bb][Rr]"
1200
+ }
1201
+ }
1202
+ },
1203
+ {
1204
+ "type": "TOKEN",
1205
+ "content": {
1206
+ "type": "PREC",
1207
+ "value": 1,
1208
+ "content": {
1209
+ "type": "PATTERN",
1210
+ "value": "[Cc][Oo][Ll]"
1211
+ }
1212
+ }
1213
+ },
1214
+ {
1215
+ "type": "TOKEN",
1216
+ "content": {
1217
+ "type": "PREC",
1218
+ "value": 1,
1219
+ "content": {
1220
+ "type": "PATTERN",
1221
+ "value": "[Ee][Mm][Bb][Ee][Dd]"
1222
+ }
1223
+ }
1224
+ },
1225
+ {
1226
+ "type": "TOKEN",
1227
+ "content": {
1228
+ "type": "PREC",
1229
+ "value": 1,
1230
+ "content": {
1231
+ "type": "PATTERN",
1232
+ "value": "[Hh][Rr]"
1233
+ }
1234
+ }
1235
+ },
1236
+ {
1237
+ "type": "TOKEN",
1238
+ "content": {
1239
+ "type": "PREC",
1240
+ "value": 1,
1241
+ "content": {
1242
+ "type": "PATTERN",
1243
+ "value": "[Ii][Mm][Gg]"
1244
+ }
1245
+ }
1246
+ },
1247
+ {
1248
+ "type": "TOKEN",
1249
+ "content": {
1250
+ "type": "PREC",
1251
+ "value": 1,
1252
+ "content": {
1253
+ "type": "PATTERN",
1254
+ "value": "[Ii][Nn][Pp][Uu][Tt]"
1255
+ }
1256
+ }
1257
+ },
1258
+ {
1259
+ "type": "TOKEN",
1260
+ "content": {
1261
+ "type": "PREC",
1262
+ "value": 1,
1263
+ "content": {
1264
+ "type": "PATTERN",
1265
+ "value": "[Ll][Ii][Nn][Kk]"
1266
+ }
1267
+ }
1268
+ },
1269
+ {
1270
+ "type": "TOKEN",
1271
+ "content": {
1272
+ "type": "PREC",
1273
+ "value": 1,
1274
+ "content": {
1275
+ "type": "PATTERN",
1276
+ "value": "[Mm][Ee][Tt][Aa]"
1277
+ }
1278
+ }
1279
+ },
1280
+ {
1281
+ "type": "TOKEN",
1282
+ "content": {
1283
+ "type": "PREC",
1284
+ "value": 1,
1285
+ "content": {
1286
+ "type": "PATTERN",
1287
+ "value": "[Pp][Aa][Rr][Aa][Mm]"
1288
+ }
1289
+ }
1290
+ },
1291
+ {
1292
+ "type": "TOKEN",
1293
+ "content": {
1294
+ "type": "PREC",
1295
+ "value": 1,
1296
+ "content": {
1297
+ "type": "PATTERN",
1298
+ "value": "[Ss][Oo][Uu][Rr][Cc][Ee]"
1299
+ }
1300
+ }
1301
+ },
1302
+ {
1303
+ "type": "TOKEN",
1304
+ "content": {
1305
+ "type": "PREC",
1306
+ "value": 1,
1307
+ "content": {
1308
+ "type": "PATTERN",
1309
+ "value": "[Tt][Rr][Aa][Cc][Kk]"
1310
+ }
1311
+ }
1312
+ },
1313
+ {
1314
+ "type": "TOKEN",
1315
+ "content": {
1316
+ "type": "PREC",
1317
+ "value": 1,
1318
+ "content": {
1319
+ "type": "PATTERN",
1320
+ "value": "[Ww][Bb][Rr]"
1321
+ }
1322
+ }
1323
+ }
1324
+ ]
1325
+ },
1326
+ "self_closing_element": {
1327
+ "type": "CHOICE",
1328
+ "members": [
1329
+ {
1330
+ "type": "SEQ",
1331
+ "members": [
1332
+ {
1333
+ "type": "STRING",
1334
+ "value": "<"
1335
+ },
1336
+ {
1337
+ "type": "FIELD",
1338
+ "name": "name",
1339
+ "content": {
1340
+ "type": "SYMBOL",
1341
+ "name": "_tag_name"
1342
+ }
1343
+ },
1344
+ {
1345
+ "type": "REPEAT",
1346
+ "content": {
1347
+ "type": "SYMBOL",
1348
+ "name": "_tag_item"
1349
+ }
1350
+ },
1351
+ {
1352
+ "type": "ALIAS",
1353
+ "content": {
1354
+ "type": "SYMBOL",
1355
+ "name": "_self_closing_delimiter"
1356
+ },
1357
+ "named": false,
1358
+ "value": "/>"
1359
+ }
1360
+ ]
1361
+ },
1362
+ {
1363
+ "type": "SEQ",
1364
+ "members": [
1365
+ {
1366
+ "type": "STRING",
1367
+ "value": "<"
1368
+ },
1369
+ {
1370
+ "type": "FIELD",
1371
+ "name": "name",
1372
+ "content": {
1373
+ "type": "ALIAS",
1374
+ "content": {
1375
+ "type": "SYMBOL",
1376
+ "name": "script_tag_name"
1377
+ },
1378
+ "named": true,
1379
+ "value": "tag_name"
1380
+ }
1381
+ },
1382
+ {
1383
+ "type": "SYMBOL",
1384
+ "name": "_script_tag_probe"
1385
+ },
1386
+ {
1387
+ "type": "REPEAT",
1388
+ "content": {
1389
+ "type": "SYMBOL",
1390
+ "name": "_tag_item"
1391
+ }
1392
+ },
1393
+ {
1394
+ "type": "STRING",
1395
+ "value": "/>"
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ "type": "SEQ",
1401
+ "members": [
1402
+ {
1403
+ "type": "STRING",
1404
+ "value": "<"
1405
+ },
1406
+ {
1407
+ "type": "FIELD",
1408
+ "name": "name",
1409
+ "content": {
1410
+ "type": "ALIAS",
1411
+ "content": {
1412
+ "type": "SYMBOL",
1413
+ "name": "style_tag_name"
1414
+ },
1415
+ "named": true,
1416
+ "value": "tag_name"
1417
+ }
1418
+ },
1419
+ {
1420
+ "type": "REPEAT",
1421
+ "content": {
1422
+ "type": "SYMBOL",
1423
+ "name": "_tag_item"
1424
+ }
1425
+ },
1426
+ {
1427
+ "type": "STRING",
1428
+ "value": "/>"
1429
+ }
1430
+ ]
1431
+ }
1432
+ ]
1433
+ },
1434
+ "element": {
1435
+ "type": "SEQ",
1436
+ "members": [
1437
+ {
1438
+ "type": "SYMBOL",
1439
+ "name": "start_tag"
1440
+ },
1441
+ {
1442
+ "type": "REPEAT",
1443
+ "content": {
1444
+ "type": "SYMBOL",
1445
+ "name": "_content"
1446
+ }
1447
+ },
1448
+ {
1449
+ "type": "CHOICE",
1450
+ "members": [
1451
+ {
1452
+ "type": "SYMBOL",
1453
+ "name": "end_tag"
1454
+ },
1455
+ {
1456
+ "type": "SYMBOL",
1457
+ "name": "_implicit_end_tag"
1458
+ }
1459
+ ]
1460
+ }
1461
+ ]
1462
+ },
1463
+ "start_tag": {
1464
+ "type": "SEQ",
1465
+ "members": [
1466
+ {
1467
+ "type": "STRING",
1468
+ "value": "<"
1469
+ },
1470
+ {
1471
+ "type": "FIELD",
1472
+ "name": "name",
1473
+ "content": {
1474
+ "type": "SYMBOL",
1475
+ "name": "_tag_name"
1476
+ }
1477
+ },
1478
+ {
1479
+ "type": "REPEAT",
1480
+ "content": {
1481
+ "type": "SYMBOL",
1482
+ "name": "_tag_item"
1483
+ }
1484
+ },
1485
+ {
1486
+ "type": "STRING",
1487
+ "value": ">"
1488
+ }
1489
+ ]
1490
+ },
1491
+ "_tag_item": {
1492
+ "type": "CHOICE",
1493
+ "members": [
1494
+ {
1495
+ "type": "SYMBOL",
1496
+ "name": "attribute"
1497
+ },
1498
+ {
1499
+ "type": "SYMBOL",
1500
+ "name": "_nugget"
1501
+ },
1502
+ {
1503
+ "type": "SYMBOL",
1504
+ "name": "server_comment"
1505
+ }
1506
+ ]
1507
+ },
1508
+ "_tag_name": {
1509
+ "type": "ALIAS",
1510
+ "content": {
1511
+ "type": "SYMBOL",
1512
+ "name": "_start_tag_name"
1513
+ },
1514
+ "named": true,
1515
+ "value": "tag_name"
1516
+ },
1517
+ "end_tag": {
1518
+ "type": "SEQ",
1519
+ "members": [
1520
+ {
1521
+ "type": "STRING",
1522
+ "value": "</"
1523
+ },
1524
+ {
1525
+ "type": "FIELD",
1526
+ "name": "name",
1527
+ "content": {
1528
+ "type": "CHOICE",
1529
+ "members": [
1530
+ {
1531
+ "type": "ALIAS",
1532
+ "content": {
1533
+ "type": "SYMBOL",
1534
+ "name": "script_tag_name"
1535
+ },
1536
+ "named": true,
1537
+ "value": "tag_name"
1538
+ },
1539
+ {
1540
+ "type": "ALIAS",
1541
+ "content": {
1542
+ "type": "SYMBOL",
1543
+ "name": "style_tag_name"
1544
+ },
1545
+ "named": true,
1546
+ "value": "tag_name"
1547
+ },
1548
+ {
1549
+ "type": "ALIAS",
1550
+ "content": {
1551
+ "type": "SYMBOL",
1552
+ "name": "void_tag_name"
1553
+ },
1554
+ "named": true,
1555
+ "value": "tag_name"
1556
+ },
1557
+ {
1558
+ "type": "ALIAS",
1559
+ "content": {
1560
+ "type": "SYMBOL",
1561
+ "name": "_end_tag_name"
1562
+ },
1563
+ "named": true,
1564
+ "value": "tag_name"
1565
+ }
1566
+ ]
1567
+ }
1568
+ },
1569
+ {
1570
+ "type": "STRING",
1571
+ "value": ">"
1572
+ }
1573
+ ]
1574
+ },
1575
+ "stray_end_tag": {
1576
+ "type": "SEQ",
1577
+ "members": [
1578
+ {
1579
+ "type": "STRING",
1580
+ "value": "</"
1581
+ },
1582
+ {
1583
+ "type": "FIELD",
1584
+ "name": "name",
1585
+ "content": {
1586
+ "type": "ALIAS",
1587
+ "content": {
1588
+ "type": "SYMBOL",
1589
+ "name": "_stray_end_tag_name"
1590
+ },
1591
+ "named": true,
1592
+ "value": "tag_name"
1593
+ }
1594
+ },
1595
+ {
1596
+ "type": "STRING",
1597
+ "value": ">"
1598
+ }
1599
+ ]
1600
+ },
1601
+ "doctype": {
1602
+ "type": "SEQ",
1603
+ "members": [
1604
+ {
1605
+ "type": "SYMBOL",
1606
+ "name": "doctype_token"
1607
+ },
1608
+ {
1609
+ "type": "CHOICE",
1610
+ "members": [
1611
+ {
1612
+ "type": "ALIAS",
1613
+ "content": {
1614
+ "type": "PATTERN",
1615
+ "value": "[^>]+"
1616
+ },
1617
+ "named": true,
1618
+ "value": "doctype_declaration"
1619
+ },
1620
+ {
1621
+ "type": "BLANK"
1622
+ }
1623
+ ]
1624
+ },
1625
+ {
1626
+ "type": "STRING",
1627
+ "value": ">"
1628
+ }
1629
+ ]
1630
+ },
1631
+ "doctype_token": {
1632
+ "type": "TOKEN",
1633
+ "content": {
1634
+ "type": "PREC",
1635
+ "value": 1,
1636
+ "content": {
1637
+ "type": "PATTERN",
1638
+ "value": "<![Dd][Oo][Cc][Tt][Yy][Pp][Ee]"
1639
+ }
1640
+ }
1641
+ },
1642
+ "cdata_section": {
1643
+ "type": "SEQ",
1644
+ "members": [
1645
+ {
1646
+ "type": "STRING",
1647
+ "value": "<![CDATA["
1648
+ },
1649
+ {
1650
+ "type": "REPEAT",
1651
+ "content": {
1652
+ "type": "CHOICE",
1653
+ "members": [
1654
+ {
1655
+ "type": "SYMBOL",
1656
+ "name": "_nugget"
1657
+ },
1658
+ {
1659
+ "type": "SYMBOL",
1660
+ "name": "server_comment"
1661
+ },
1662
+ {
1663
+ "type": "ALIAS",
1664
+ "content": {
1665
+ "type": "PATTERN",
1666
+ "value": "[^\\]<]+"
1667
+ },
1668
+ "named": true,
1669
+ "value": "text"
1670
+ },
1671
+ {
1672
+ "type": "ALIAS",
1673
+ "content": {
1674
+ "type": "STRING",
1675
+ "value": "]"
1676
+ },
1677
+ "named": true,
1678
+ "value": "text"
1679
+ },
1680
+ {
1681
+ "type": "ALIAS",
1682
+ "content": {
1683
+ "type": "STRING",
1684
+ "value": "<"
1685
+ },
1686
+ "named": true,
1687
+ "value": "text"
1688
+ }
1689
+ ]
1690
+ }
1691
+ },
1692
+ {
1693
+ "type": "STRING",
1694
+ "value": "]]>"
1695
+ }
1696
+ ]
1697
+ },
1698
+ "processing_instruction": {
1699
+ "type": "SEQ",
1700
+ "members": [
1701
+ {
1702
+ "type": "STRING",
1703
+ "value": "<?"
1704
+ },
1705
+ {
1706
+ "type": "REPEAT",
1707
+ "content": {
1708
+ "type": "CHOICE",
1709
+ "members": [
1710
+ {
1711
+ "type": "SYMBOL",
1712
+ "name": "_nugget"
1713
+ },
1714
+ {
1715
+ "type": "SYMBOL",
1716
+ "name": "server_comment"
1717
+ },
1718
+ {
1719
+ "type": "ALIAS",
1720
+ "content": {
1721
+ "type": "PATTERN",
1722
+ "value": "[^?<]+"
1723
+ },
1724
+ "named": true,
1725
+ "value": "text"
1726
+ },
1727
+ {
1728
+ "type": "ALIAS",
1729
+ "content": {
1730
+ "type": "STRING",
1731
+ "value": "?"
1732
+ },
1733
+ "named": true,
1734
+ "value": "text"
1735
+ },
1736
+ {
1737
+ "type": "ALIAS",
1738
+ "content": {
1739
+ "type": "STRING",
1740
+ "value": "<"
1741
+ },
1742
+ "named": true,
1743
+ "value": "text"
1744
+ }
1745
+ ]
1746
+ }
1747
+ },
1748
+ {
1749
+ "type": "STRING",
1750
+ "value": "?>"
1751
+ }
1752
+ ]
1753
+ },
1754
+ "text": {
1755
+ "type": "TOKEN",
1756
+ "content": {
1757
+ "type": "CHOICE",
1758
+ "members": [
1759
+ {
1760
+ "type": "PATTERN",
1761
+ "value": "[^<\\s][^<]*"
1762
+ },
1763
+ {
1764
+ "type": "PATTERN",
1765
+ "value": "<\\s[^<]*"
1766
+ }
1767
+ ]
1768
+ }
1769
+ }
1770
+ },
1771
+ "extras": [
1772
+ {
1773
+ "type": "PATTERN",
1774
+ "value": "\\s"
1775
+ },
1776
+ {
1777
+ "type": "PATTERN",
1778
+ "value": "\\uFEFF"
1779
+ }
1780
+ ],
1781
+ "conflicts": [],
1782
+ "precedences": [],
1783
+ "externals": [
1784
+ {
1785
+ "type": "SYMBOL",
1786
+ "name": "_lang_csharp"
1787
+ },
1788
+ {
1789
+ "type": "SYMBOL",
1790
+ "name": "_lang_vb"
1791
+ },
1792
+ {
1793
+ "type": "SYMBOL",
1794
+ "name": "_lang_other"
1795
+ },
1796
+ {
1797
+ "type": "SYMBOL",
1798
+ "name": "_code_csharp"
1799
+ },
1800
+ {
1801
+ "type": "SYMBOL",
1802
+ "name": "_code_vb"
1803
+ },
1804
+ {
1805
+ "type": "SYMBOL",
1806
+ "name": "server_comment_text"
1807
+ },
1808
+ {
1809
+ "type": "SYMBOL",
1810
+ "name": "_script_csharp"
1811
+ },
1812
+ {
1813
+ "type": "SYMBOL",
1814
+ "name": "_script_vb"
1815
+ },
1816
+ {
1817
+ "type": "SYMBOL",
1818
+ "name": "style_text"
1819
+ },
1820
+ {
1821
+ "type": "SYMBOL",
1822
+ "name": "expression_text"
1823
+ },
1824
+ {
1825
+ "type": "SYMBOL",
1826
+ "name": "_handler_csharp"
1827
+ },
1828
+ {
1829
+ "type": "SYMBOL",
1830
+ "name": "_handler_vb"
1831
+ },
1832
+ {
1833
+ "type": "SYMBOL",
1834
+ "name": "_start_tag_name"
1835
+ },
1836
+ {
1837
+ "type": "SYMBOL",
1838
+ "name": "_end_tag_name"
1839
+ },
1840
+ {
1841
+ "type": "SYMBOL",
1842
+ "name": "_implicit_end_tag"
1843
+ },
1844
+ {
1845
+ "type": "SYMBOL",
1846
+ "name": "_self_closing_delimiter"
1847
+ },
1848
+ {
1849
+ "type": "SYMBOL",
1850
+ "name": "_stray_end_tag_name"
1851
+ },
1852
+ {
1853
+ "type": "SYMBOL",
1854
+ "name": "_script_tag_probe"
1855
+ }
1856
+ ],
1857
+ "inline": [],
1858
+ "supertypes": [],
1859
+ "reserved": {}
1860
+ }