From: Darold Gilles Date: Mon, 28 Jan 2013 21:04:38 +0000 (+0100) Subject: Fix case in SQL code highlighting where QQCODE temp keyword was not replaced. Thanks... X-Git-Tag: v3.2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e700a3318b59704f5f66c4171b470105f512c2c;p=pgbadger Fix case in SQL code highlighting where QQCODE temp keyword was not replaced. Thanks to Julien Ruhaud for the report. --- diff --git a/pgbadger b/pgbadger index c4a134a..da63d29 100755 --- a/pgbadger +++ b/pgbadger @@ -4079,14 +4079,13 @@ sub highlight_code $code =~ s/\b(\d+)\b/$1<\/span>/igs; - for (my $x = 0; $x <= $#qqcode; $x++) { - $code =~ s/QQCODEY${x}A/$qqcode[$x]/s; - } for (my $x = 0; $x <= $#qcode; $x++) { $code =~ s/QCODEY${x}B/$qcode[$x]/s; } + for (my $x = 0; $x <= $#qqcode; $x++) { + $code =~ s/QQCODEY${x}A/$qqcode[$x]/s; + } - #$code =~ s/("[^"]*")/$1<\/span>/igs; $code =~ s/('[^']*')/$1<\/span>/gs; $code =~ s/(`[^`]*`)/$1<\/span>/gs;