Skip to content

Commit

Permalink
ditto
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 30, 2015
1 parent 8f39c39 commit c1b59d1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions examples/dub-example/component/source/component/mod.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ void removeSingleLineComments
{
foreach(line; lineSplitter(ir))
{
if(!line
.save
.find!(not!isWhite)
.startsWith(cmt))
{
put(or, line.until(cmt));
put(or, "\n");
}
if(line.save.find!(not!isWhite).startsWith(cmt))
continue; //skips line
put(or, line.until(cmt)); //skips comment
put(or, "\n");
}
}

Expand Down

0 comments on commit c1b59d1

Please sign in to comment.