]> granicus.if.org Git - pgbadger/commitdiff
Change substitution markup in apptempt to fix a new look-behind assertions error...
authorDarold Gilles <gilles@darold.net>
Fri, 28 Nov 2014 12:03:28 +0000 (13:03 +0100)
committerDarold Gilles <gilles@darold.net>
Fri, 28 Nov 2014 12:03:28 +0000 (13:03 +0100)
pgbadger

index fef67b8964e52823f25c41527f671021661b65b4..458e9ed151ce6171d69b32c2c1fce0bad433a769 100755 (executable)
--- 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/<span class="kw1">$KEYWORDS1[$x]<\/span>/igs;
-               $code =~ s/(?<!(?-i)STYLESY0B\$\$)\b$KEYWORDS1[$x]\b/<span class="kw1">$KEYWORDS1[$x]<\/span>/igs;
+               $code =~ s/(?<!(?-i)PGBGYB\$\$)\b$KEYWORDS1[$x]\b/<span class="kw1">$KEYWORDS1[$x]<\/span>/igs;
        }
 
        for (my $x = 0 ; $x <= $#KEYWORDS2 ; $x++) {
@@ -8757,7 +8757,7 @@ sub highlight_code
                $code =~ s/($BRACKETS[$x])/<span class="br0">$1<\/span>/igs;
        }
 
-       $code =~ s/\$\$STYLESY0A\$\$([^\$]+)\$\$STYLESY0B\$\$/<span class="sy0">$1<\/span>/gs;
+       $code =~ s/\$\$PGBGYA\$\$([^\$]+)\$\$PGBGYB\$\$/<span class="sy0">$1<\/span>/gs;
 
        $code =~ s/\b(\d+)\b/<span class="nu0">$1<\/span>/igs;