Skip to content
This repository was archived by the owner on Jun 9, 2018. It is now read-only.

Commit e81ed49

Browse files
committed
update to upstream PGE;Expr changes
PGE;Expr now uses StringBuilder in stead of CodeString
1 parent ca69c2d commit e81ed49

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lua/lib/luaregex.pir

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,12 @@ Mostly taken from F<compilers/pge/PGE/P5Regex.pir>.
729729
.local string begin, end
730730
$S0 = self.'ast'()
731731
begin = substr $S0, 0, 1
732-
begin = code.'escape'(begin)
732+
$P0 = get_root_global ['parrot';'PGE';'Util'], 'pir_str_escape'
733+
begin = $P0(begin)
733734
end = substr $S0, 1, 1
734-
end = code.'escape'(end)
735+
end = $P0(end)
735736
736-
code.'emit'(<<" CODE", label, begin, end, next)
737+
code.'append_format'(<<" CODE", label, begin, end, next)
737738
%0: # balanced
738739
if pos >= lastpos goto fail
739740
$S0 = substr target, pos, 1

0 commit comments

Comments
 (0)