From: Arthur Axel "fREW" Schmidt Date: Tue, 7 Sep 2010 00:10:06 +0000 (+0000) Subject: from has to stay X-Git-Tag: v1.70~82 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3d910890d69c82bb5640b61fc4d65ae408c7b5e7;p=dbsrgits%2FSQL-Abstract.git from has to stay --- diff --git a/lib/SQL/Abstract/Tree.pm b/lib/SQL/Abstract/Tree.pm index 10b0455..190ae41 100644 --- a/lib/SQL/Abstract/Tree.pm +++ b/lib/SQL/Abstract/Tree.pm @@ -27,6 +27,7 @@ my @expression_terminator_sql_keywords = ( 'UPDATE', 'INSERT \s+ INTO', 'DELETE \s+ FROM', + 'FROM', 'SET', '(?: (?: @@ -87,6 +88,7 @@ my %indents = ( update => 0, 'insert into' => 0, 'delete from' => 0, + from => 1, where => 1, join => 1, 'left join' => 1, @@ -152,6 +154,7 @@ eval { where => [Term::ANSIColor::color('green'), Term::ANSIColor::color('reset')], values => [Term::ANSIColor::color('yellow'), Term::ANSIColor::color('reset')], + from => [Term::ANSIColor::color('yellow'), Term::ANSIColor::color('reset')], join => [Term::ANSIColor::color('magenta'), Term::ANSIColor::color('reset')], 'left join' => [Term::ANSIColor::color('magenta'), Term::ANSIColor::color('reset')],