| ... | ... | @@ -2818,10 +2818,10 @@ const Parser = struct { |
| 2818 | 2818 | break :blk_0 false; |
| 2819 | 2819 | }; |
| 2820 | 2820 | } |
| 2821 | | pub fn parseSTRINGLITERALSINGLE(p: *Parser) bool { |
| 2821 | pub fn parsestring(p: *Parser) bool { |
| 2822 | 2822 | return blk_0: { |
| 2823 | 2823 | const pos_0 = p.i; |
| 2824 | | if (p.parseskip() and (p.i < p.source.len and switch (p.source[p.i]) { |
| 2824 | if ((p.i < p.source.len and switch (p.source[p.i]) { |
| 2825 | 2825 | '"'...'"', |
| 2826 | 2826 | => blk_1: { |
| 2827 | 2827 | p.i += 1; |
| ... | ... | @@ -2843,10 +2843,18 @@ const Parser = struct { |
| 2843 | 2843 | break :blk_0 false; |
| 2844 | 2844 | }; |
| 2845 | 2845 | } |
| 2846 | pub fn parseSTRINGLITERALSINGLE(p: *Parser) bool { |
| 2847 | return blk_0: { |
| 2848 | const pos_0 = p.i; |
| 2849 | if (p.parseskip() and p.parsestring()) break :blk_0 true; |
| 2850 | p.i = pos_0; |
| 2851 | break :blk_0 false; |
| 2852 | }; |
| 2853 | } |
| 2846 | 2854 | pub fn parseSTRINGLITERAL(p: *Parser) bool { |
| 2847 | 2855 | return blk_0: { |
| 2848 | 2856 | const pos_0 = p.i; |
| 2849 | | if (p.parseSTRINGLITERALSINGLE()) break :blk_0 true; |
| 2857 | if (p.parseskip() and p.parsestring()) break :blk_0 true; |
| 2850 | 2858 | p.i = pos_0; |
| 2851 | 2859 | if (blk_1: { |
| 2852 | 2860 | var match_1 = false; |
| ... | ... | @@ -2902,7 +2910,7 @@ const Parser = struct { |
| 2902 | 2910 | break :blk_1 true; |
| 2903 | 2911 | } |
| 2904 | 2912 | break :blk_1 false; |
| 2905 | | } and p.parseSTRINGLITERALSINGLE()) break :blk_0 true; |
| 2913 | } and p.parsestring()) break :blk_0 true; |
| 2906 | 2914 | p.i = pos_0; |
| 2907 | 2915 | break :blk_0 false; |
| 2908 | 2916 | }; |