Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
e169c907
Commit
e169c907
authored
Sep 13, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix preprocessing of line comments not preceded by whitespace
parent
8ecd2c6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
CHANGELOG.md
+2
-0
src/Language/SystemVerilog/Parser/Preprocess.hs
+3
-0
test/lex/comment_no_space.sv
+5
-0
No files found.
CHANGELOG.md
View file @
e169c907
...
...
@@ -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
...
...
src/Language/SystemVerilog/Parser/Preprocess.hs
View file @
e169c907
...
...
@@ -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
'
p
os
setInput
rest
test/lex/comment_no_space.sv
0 → 100644
View file @
e169c907
module
top
;
initial
begin
$
display
(
"Hi!"
)
;
end
//comment
endmodule
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment