Skip to content

Commit

Permalink
cleanup source generator
Browse files Browse the repository at this point in the history
  • Loading branch information
rse committed Feb 23, 2013
1 parent f8f7b7b commit 4dc69e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build-src.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ ($$$)
my $js = assemble(0, "", $source);

# move boolean operators from begin to end of line
# (especially to make linters more happy)
$js =~ s/
([ \t]*)(\n[ \t]*)(\&\&|\|\|)([ \t]+)
([ \t]*)(\n
[ \t]*)(\&\&|\|\|)([ \t]+)
/
$1 . " " . $3 . $2 . " " . $4
/sgxe;

# move arithmetic operators from begin to end of line
# (especially to make linters more happy)
$js =~ s/
([ \t]*)(\n[ \t]*)(-|\+|\?|:)([ \t]+)
([ \t]*)(\n
[ \t]*)(-|\+|\?|:)([ \t]+)
/
$1 . " " . $3 . $2 . " " . $4
/sgxe;
Expand Down

0 comments on commit 4dc69e0

Please sign in to comment.