]> granicus.if.org Git - pgbadger/commitdiff
Add geometric operators. Thanks to Rodolphe Quiedeville for the report.
authorDarold Gilles <gilles@darold.net>
Thu, 19 Mar 2015 12:40:49 +0000 (13:40 +0100)
committerDarold Gilles <gilles@darold.net>
Thu, 19 Mar 2015 12:40:49 +0000 (13:40 +0100)
pgbadger

index 56cd9698c42562ffe1a0e8cd14e0a4baae0a1463..1a6dd58b21168ff37e1b5ffbe61dbe40fdbd8ef5 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -10860,10 +10860,12 @@ sub build_log_line_prefix_regex
 
                my $re = qr{
     (
-        (?:--|\#)[\ \t\S]*      # single line comments
+        (?:--)[\ \t\S]*      # single line comments
         |
         (?:<>|<=>|>=|<=|==|=|!=|!|<<|>>|<|>|\|\||\||&&|&|-|\+|\*(?!/)|/(?!\*)|\%|~|\^|\?)
                                 # operators and tests
+       (?:\#|\@\-\@|\@\@|\#\#|<\->|\&<|\&>|<<\||\|>>|\&<\||\|\&>|<\^|>\^|\?\#|\?\-|\?\||\?\-\||\?\|\||\@>|<\@|\~=)
+                               # Geometric Operators
         |
         [\[\]\(\),;.]            # punctuation (parenthesis, comma)
         |