From: Darold Gilles Date: Fri, 28 Nov 2014 12:03:28 +0000 (+0100) Subject: Change substitution markup in apptempt to fix a new look-behind assertions error... X-Git-Tag: v6.3~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5565fbd280ef158a49c0a95ee48dbc3d91d11603;p=pgbadger Change substitution markup in apptempt to fix a new look-behind assertions error. Thanks to Paolo Cavallini for the report. --- diff --git a/pgbadger b/pgbadger index fef67b8..458e9ed 100755 --- a/pgbadger +++ b/pgbadger @@ -8740,11 +8740,11 @@ sub highlight_code } foreach my $x (keys %SYMBOLS) { - $code =~ s/$x/\$\$STYLESY0A\$\$$SYMBOLS{$x}\$\$STYLESY0B\$\$/gs; + $code =~ s/$x/\$\$PGBGYA\$\$$SYMBOLS{$x}\$\$PGBGYB\$\$/gs; } for (my $x = 0 ; $x <= $#KEYWORDS1 ; $x++) { #$code =~ s/\b$KEYWORDS1[$x]\b/$KEYWORDS1[$x]<\/span>/igs; - $code =~ s/(?$KEYWORDS1[$x]<\/span>/igs; + $code =~ s/(?$KEYWORDS1[$x]<\/span>/igs; } for (my $x = 0 ; $x <= $#KEYWORDS2 ; $x++) { @@ -8757,7 +8757,7 @@ sub highlight_code $code =~ s/($BRACKETS[$x])/$1<\/span>/igs; } - $code =~ s/\$\$STYLESY0A\$\$([^\$]+)\$\$STYLESY0B\$\$/$1<\/span>/gs; + $code =~ s/\$\$PGBGYA\$\$([^\$]+)\$\$PGBGYB\$\$/$1<\/span>/gs; $code =~ s/\b(\d+)\b/$1<\/span>/igs;