Skip to content

Commit bdce449

Browse files
Some light changes
1 parent 451ebe3 commit bdce449

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

inner.regex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
(?<inner>\s*+(((?<stringlit>(?(?=("|'))(?{push2 \@matches, {"begincharliteral" => $^N}})|(*F))
2-
(?(?=(((??{$matches[-1]->{begincharliteral}})
1+
(?<inner>\s*+(((?<stringlit>(?(?=(?<quote>"|'))(?{push2 \@matches, {"begincharliteral" => $^N}})|(*F))
2+
(?(?=(?<strtexts>(\g{quote}
33
((?<escape>(?<escaperaw>\\(?(?=x)x[0-9a-fA-F]++|(?(?=\d)[0-7]++|['"?\\abfnrtv]))))
44
(?{call 'addescapesequencetostring'})|
55
(?<text>(?<textraw>((?!(?&escape)|(??{$matches[-1]->{begincharliteral}})).)++)(?{call 'addplaintexttostring'})))*+
6-
(??{$matches[-1]->{begincharliteral}})\s*+)*+))(??{qr{\Q$^N\E}})|(?{pop2 \@matches})(*F))
6+
\g{quote}\s*+)*+))\g{strtexts}|(?{pop2 \@matches})(*F))
77
(?{call 'add_literal'})(?{pop2 \@matches}))
88
|(?(?=((?&floating)))
99
\g{-1}

primexpr.regex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
)
4545

4646
(?<ternaryorsomething>(?(?=((?{push2 \@savedcallouts, []})
47-
(?{++$recording; print3("recording ternaryorsomething\n")})(?&ternaryrest)))(??{qr{\Q$^N\E}})
47+
(?{++$recording; print3("recording ternaryorsomething\n")})(?&ternaryrest)))\g{-1}
4848
(?&castexpr)(?&ternarylogicopt)(?{call 'end_ternary'})
4949
|(?{--$recording})(?{pop2 \@savedcallouts}))
5050
)

0 commit comments

Comments
 (0)