Skip to content

Commit

Permalink
Merge pull request #146 from zhanghongce/master
Browse files Browse the repository at this point in the history
Fix dead code & a one test
  • Loading branch information
zhanghongce authored Aug 7, 2019
2 parents 71d8eab + 78e4e2e commit ebe080b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/vtarget-out/vtarget_gen_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,15 @@ static size_t find_comments(const std::string& line) {
if (state == PLAIN) {
if (c == '/')
next_state = LEFT;
else if (c == '"')
next_state = STR;
else
next_state = PLAIN;
} else if (state == STR) {
if (c == '"')
if (c == '"' || c == '\n')
next_state = PLAIN;
// the '\n' case is in case we encounter some issue to find
// the ending of a string
else
next_state = STR;
} else if (state == LEFT) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit-data/verilog_sample/range4.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module range( clk, rst, in1, in2, in3, r1, r2, r3);

parameter W = 4;
parameter W2 = W + 1;
parameter W2 = (W + 1);
parameter WV = 2'b00;
parameter WV2 = WV + 1;

Expand Down

0 comments on commit ebe080b

Please sign in to comment.