CGrammar: Correct handling of empty string literals during beautification

This commit is contained in:
Pragmatic Software 2014-06-28 14:49:59 +00:00
parent 086d5059b1
commit 5d9b45661d
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 684, BUILD_REVISION => 685,
BUILD_DATE => "2014-06-28", BUILD_DATE => "2014-06-28",
}; };

View File

@ -81,7 +81,8 @@ foreach my $arg (@ARGV) {
$output =~ s/of evaluate/of/g; $output =~ s/of evaluate/of/g;
foreach my $quote (@quotes) { foreach my $quote (@quotes) {
$output =~ s/"-*"/"$quote"/; next unless $quote;
$output =~ s/"-+"/"$quote"/;
} }
print $output; print $output;