Commit e169c907 by Zachary Snow

fix preprocessing of line comments not preceded by whitespace

parent 8ecd2c6e
......@@ -26,6 +26,8 @@
files encoding using Latin-1 with special characters in comments
* Support for non-ANSI style port declarations where the port declaration is
separate from the corresponding net or variable declaration
* Fix preprocessing of line comments which are neither preceded nor followed by
whitespace except for the newline which terminates the comment
## v0.0.8
......
......@@ -951,4 +951,7 @@ removeThrough pattern = do
let chars = patternIdx + length pattern
let (dropped, rest) = splitAt chars str
advancePositions dropped
when (pattern == "\n") $ do
pos <- getPosition
pushChar '\n' pos
setInput rest
module top;
initial begin
$display("Hi!");
end//comment
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment