return $keyword
}
+
+my %starters = (
+ select => 1,
+ update => 1,
+ 'insert into' => 1,
+ 'delete from' => 1,
+);
+
sub whitespace {
my ($self, $keyword, $depth) = @_;
if (defined $self->indentmap->{lc $keyword}) {
$before = $self->newline . $self->indent($depth + $self->indentmap->{lc $keyword});
}
- $before = '' if $depth == 0 and lc $keyword eq 'select';
+ $before = '' if $depth == 0 and defined $starters{lc $keyword};
return [$before, ' '];
}