[Bast-commits] r9686 - SQL-Abstract/1.x/trunk/lib/SQL/Abstract
frew at dev.catalyst.perl.org
frew at dev.catalyst.perl.org
Mon Sep 6 16:04:29 GMT 2010
Author: frew
Date: 2010-09-06 17:04:29 +0100 (Mon, 06 Sep 2010)
New Revision: 9686
Modified:
SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm
Log:
parse RNO, better coloring for some keywords
Modified: SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm
===================================================================
--- SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm 2010-09-06 15:56:52 UTC (rev 9685)
+++ SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm 2010-09-06 16:04:29 UTC (rev 9686)
@@ -45,6 +45,7 @@
'INTERSECT',
'EXCEPT',
'RETURNING',
+ 'ROW_NUMBER \s* \( \s* \) \s+ OVER',
);
# These are binary operator keywords always a single LHS and RHS
@@ -84,6 +85,7 @@
join => 1,
on => 2,
'group by' => 1,
+ 'order by' => 1,
);
my %profiles = (
@@ -124,9 +126,13 @@
eval {
require Term::ANSIColor;
$profiles{console}->{colormap} = {
- select => [Term::ANSIColor::color('red'), Term::ANSIColor::color('reset')],
- where => [Term::ANSIColor::color('green'), Term::ANSIColor::color('reset')],
- from => [Term::ANSIColor::color('cyan'), Term::ANSIColor::color('reset')],
+ select => [Term::ANSIColor::color('red'), Term::ANSIColor::color('reset')],
+ where => [Term::ANSIColor::color('green'), Term::ANSIColor::color('reset')],
+ from => [Term::ANSIColor::color('cyan'), Term::ANSIColor::color('reset')],
+ join => [Term::ANSIColor::color('magenta'), Term::ANSIColor::color('reset')],
+ on => [Term::ANSIColor::color('blue'), Term::ANSIColor::color('reset')],
+ 'group by' => [Term::ANSIColor::color('cyan'), Term::ANSIColor::color('reset')],
+ 'order by' => [Term::ANSIColor::color('yellow'), Term::ANSIColor::color('reset')],
};
};
More information about the Bast-commits
mailing list