File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- (?< inner > \s * + ( ( (?< stringlit > (? (? = ( " | ' ) ) (? { p u s h 2 \@ m a t c h e s , { " b e g i n c h a r l i t e r a l " = > $ ^ N } } ) | ( * F ) )
2
- (? (? = ( ( (? ? { $ m a t c h e s [ - 1 ] - > { begincharliteral } } )
1
+ (?< inner > \s * + ( ( (?< stringlit > (? (? = (?< quote > " | ' ) ) (? { p u s h 2 \@ m a t c h e s , { " b e g i n c h a r l i t e r a l " = > $ ^ N } } ) | ( * F ) )
2
+ (? (? = (?< strtexts > ( \g { quote }
3
3
( (?< escape > (?< escaperaw > \\ (? (? = x ) x [ 0 - 9 a - f A - F ] + + | (? (? = \d ) [ 0 - 7 ] + + | [ ' " ? \\ a b f n r t v ] ) ) ) )
4
4
(? { c a l l ' a d d e s c a p e s e q u e n c e t o s t r i n g ' } ) |
5
5
(?< text > (?< textraw > ( (? ! (? & e s c a p e ) | (? ? { $ m a t c h e s [ - 1 ] - > { begincharliteral} } ) ) .) + + ) (? { c a l l ' a d d p l a i n t e x t t o s t r i n g ' } ) ) ) * +
6
- (? ? { $ m a t c h e s [ - 1 ] - > { begincharliteral } } ) \s * + ) * + ) ) (? ? { q r { \Q $ ^ N \E } } ) | (? { p o p 2 \@ m a t c h e s } ) ( * F ) )
6
+ \g { quote } \s * + ) * + ) ) \g { strtexts } | (? { p o p 2 \@ m a t c h e s } ) ( * F ) )
7
7
(? { c a l l ' a d d _ l i t e r a l ' } ) (? { p o p 2 \@ m a t c h e s } ) )
8
8
| (? (? = ( (? & f l o a t i n g ) ) )
9
9
\g { -1 }
Original file line number Diff line number Diff line change 44
44
)
45
45
46
46
(?< ternaryorsomething > (? (? = ( (? { p u s h 2 \@ s a v e d c a l l o u t s , [ ] } )
47
- (? { + + $ r e c o r d i n g ; p r i n t 3 ( " r e c o r d i n g t e r n a r y o r s o m e t h i n g \n " ) } ) (? & t e r n a r y r e s t ) ) ) (? ? { q r { \Q $ ^ N \E } } )
47
+ (? { + + $ r e c o r d i n g ; p r i n t 3 ( " r e c o r d i n g t e r n a r y o r s o m e t h i n g \n " ) } ) (? & t e r n a r y r e s t ) ) ) \g { - 1 }
48
48
(? & c a s t e x p r ) (? & t e r n a r y l o g i c o p t ) (? { c a l l ' e n d _ t e r n a r y ' } )
49
49
| (? { --$ r e c o r d i n g } ) (? { p o p 2 \@ s a v e d c a l l o u t s } ) )
50
50
)
You can’t perform that action at this time.
0 commit comments