mirror of https://github.com/zachjs/sv2v.git
fix preprocessing of line comments not preceded by whitespace
This commit is contained in:
parent
8ecd2c6e52
commit
e169c907f4
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
module top;
|
||||
initial begin
|
||||
$display("Hi!");
|
||||
end//comment
|
||||
endmodule
|
||||
Loading…
Reference in New Issue