@@ -3440,7 +3440,7 @@ pub mod peg {
34403440 ) ;
34413441 match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { { let __seq_res = __parse_BRACKET_GROUP ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , p) => { :: peg :: RuleResult :: Matched ( __pos , ( || { PatternExpr ( p) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , }
34423442 } ;
3443- match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "(" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "@" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , ")" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { :: peg :: RuleResult :: Matched ( __pos , ( || { MarkerExpr ( true ) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" )\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" @\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" (\" " ) ; :: peg :: RuleResult :: Failed } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "@" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { :: peg :: RuleResult :: Matched ( __pos , ( || { MarkerExpr ( false ) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" @\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "##" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_IDENT ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , method) => { { let __seq_res = __parse_PAREN_GROUP ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , args) => { :: peg :: RuleResult :: Matched ( __pos , ( || { MethodExpr ( method , args . stream ( ) ) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" ##\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "(" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_expression ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , expression) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , ")" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { :: peg :: RuleResult :: Matched ( __pos , ( || { expression } ) ( ) ) } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" )\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" (\" " ) ; :: peg :: RuleResult :: Failed } } } } } } } } }
3443+ match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "(" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "@" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , ")" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { :: peg :: RuleResult :: Matched ( __pos , ( || { MarkerExpr ( true ) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" )\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" @\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" (\" " ) ; :: peg :: RuleResult :: Failed } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "@" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { :: peg :: RuleResult :: Matched ( __pos , ( || { MarkerExpr ( false ) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" @\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "##" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_IDENT ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , method) => { { let __seq_res = __parse_PAREN_GROUP ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , args) => { :: peg :: RuleResult :: Matched ( __pos , ( || { MethodExpr ( method , args . stream ( ) ) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" ##\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => { let __choice_res = { let __seq_res = __parse_sp ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , sp) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "#" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_BRACE_GROUP ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , code) => { :: peg :: RuleResult :: Matched ( __pos , ( || { CustomExpr ( code) . at ( sp) } ) ( ) ) } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" #\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } ; match __choice_res { :: peg :: RuleResult :: Matched ( __pos , __value) => :: peg :: RuleResult :: Matched ( __pos , __value) , :: peg :: RuleResult :: Failed => match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , "(" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { { let __seq_res = __parse_expression ( __input , __state , __err_state , __pos) ; match __seq_res { :: peg :: RuleResult :: Matched ( __pos , expression) => { match :: peg :: ParseLiteral :: parse_string_literal ( __input , __pos , ")" ) { :: peg :: RuleResult :: Matched ( __pos , __val) => { :: peg :: RuleResult :: Matched ( __pos , ( || { expression } ) ( ) ) } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" )\" " ) ; :: peg :: RuleResult :: Failed } } } :: peg :: RuleResult :: Failed => :: peg :: RuleResult :: Failed , } } } :: peg :: RuleResult :: Failed => { __err_state . mark_failure ( __pos , "\" (\" " ) ; :: peg :: RuleResult :: Failed } } } } } } } } } } }
34443444 }
34453445 }
34463446 }
@@ -3503,7 +3503,11 @@ pub mod peg {
35033503 let mut __repeat_value = vec ! [ ] ;
35043504 loop {
35053505 let __pos = __repeat_pos;
3506- let __step_res = __input. eat_until ( __pos, ',' ) ;
3506+ let __step_res = :: peg:: call_custom_closure (
3507+ ( |input, pos| input. eat_until ( pos, ',' ) ) ,
3508+ __input,
3509+ __pos,
3510+ ) ;
35073511 match __step_res {
35083512 :: peg:: RuleResult :: Matched ( __newpos, __value) => {
35093513 __repeat_pos = __newpos;
@@ -3639,7 +3643,7 @@ pub mod peg {
36393643 __pos : usize ,
36403644 ) -> :: peg:: RuleResult < Span > {
36413645 #![ allow( non_snake_case, unused, clippy:: redundant_closure_call) ]
3642- __input . next_span ( __pos)
3646+ :: peg :: call_custom_closure ( ( |input , pos| input . next_span ( pos ) ) , __input , __pos)
36433647 }
36443648 fn __parse_KEYWORD < ' input > (
36453649 __input : & ' input Input ,
@@ -3755,7 +3759,8 @@ pub mod peg {
37553759 } ;
37563760 match __seq_res {
37573761 :: peg:: RuleResult :: Matched ( __pos, _) => {
3758- let __seq_res = __input. ident ( __pos) ;
3762+ let __seq_res =
3763+ :: peg:: call_custom_closure ( ( |input, pos| input. ident ( pos) ) , __input, __pos) ;
37593764 match __seq_res {
37603765 :: peg:: RuleResult :: Matched ( __pos, i) => {
37613766 :: peg:: RuleResult :: Matched ( __pos, ( || i) ( ) )
@@ -3774,7 +3779,7 @@ pub mod peg {
37743779 __pos : usize ,
37753780 ) -> :: peg:: RuleResult < Literal > {
37763781 #![ allow( non_snake_case, unused, clippy:: redundant_closure_call) ]
3777- __input . literal ( __pos)
3782+ :: peg :: call_custom_closure ( ( |input , pos| input . literal ( pos ) ) , __input , __pos)
37783783 }
37793784 fn __parse_PAREN_GROUP < ' input > (
37803785 __input : & ' input Input ,
@@ -3783,7 +3788,11 @@ pub mod peg {
37833788 __pos : usize ,
37843789 ) -> :: peg:: RuleResult < Group > {
37853790 #![ allow( non_snake_case, unused, clippy:: redundant_closure_call) ]
3786- __input. group ( __pos, Delimiter :: Parenthesis )
3791+ :: peg:: call_custom_closure (
3792+ ( |input, pos| input. group ( pos, Delimiter :: Parenthesis ) ) ,
3793+ __input,
3794+ __pos,
3795+ )
37873796 }
37883797 fn __parse_BRACE_GROUP < ' input > (
37893798 __input : & ' input Input ,
@@ -3792,7 +3801,11 @@ pub mod peg {
37923801 __pos : usize ,
37933802 ) -> :: peg:: RuleResult < Group > {
37943803 #![ allow( non_snake_case, unused, clippy:: redundant_closure_call) ]
3795- __input. group ( __pos, Delimiter :: Brace )
3804+ :: peg:: call_custom_closure (
3805+ ( |input, pos| input. group ( pos, Delimiter :: Brace ) ) ,
3806+ __input,
3807+ __pos,
3808+ )
37963809 }
37973810 fn __parse_BRACKET_GROUP < ' input > (
37983811 __input : & ' input Input ,
@@ -3801,7 +3814,11 @@ pub mod peg {
38013814 __pos : usize ,
38023815 ) -> :: peg:: RuleResult < Group > {
38033816 #![ allow( non_snake_case, unused, clippy:: redundant_closure_call) ]
3804- __input. group ( __pos, Delimiter :: Bracket )
3817+ :: peg:: call_custom_closure (
3818+ ( |input, pos| input. group ( pos, Delimiter :: Bracket ) ) ,
3819+ __input,
3820+ __pos,
3821+ )
38053822 }
38063823 fn __parse_LIFETIME < ' input > (
38073824 __input : & ' input Input ,
0 commit comments