@reteps/tree-sitter-htmlmustache 0.0.18

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