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
91e3ac0f
Commit
91e3ac0f
authored
Jul 08, 2021
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
normalize trailing whitespace in escaped identifiers
parent
9aa8b703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
src/Language/SystemVerilog/Parser/Lex.x
+5
-0
test/basic/escaped_identifier.sv
+14
-0
No files found.
src/Language/SystemVerilog/Parser/Lex.x
View file @
91e3ac0f
...
...
@@ -498,6 +498,11 @@ postProcess stack (Token Dir_end_keywords _ pos : ts) =
case
stack
of
(
_
:
stack'
)
->
postProcess
stack'
ts
[]
->
throwError
$
show
pos
++
": unmatched end_keywords"
postProcess
stack
(
Token
Id_escaped
str
pos
:
ts
)
=
postProcess
stack
ts
>>=
return
.
(
t'
:
)
where
t'
=
Token
Id_escaped
str'
pos
str'
=
(
++
" "
)
$
init
str
postProcess
[]
(
t
:
ts
)
=
do
ts'
<-
postProcess
[]
ts
return
$
t
:
ts'
...
...
test/basic/escaped_identifier.sv
0 → 100644
View file @
91e3ac0f
module
mod
(
input
\
AFancySignalName
[
3
]
.
Something
,
output
\
AFancySignalName
[
3
]
.
SomethingElse
)
;
endmodule
module
top
;
wire
\
BFancySignalName
.
Something
=
1
;
wire
\
BFancySignalName
.
SomethingElse
;
mod
inst_of_fancy_module
(
.
\
AFancySignalName
[
3
]
.
Something
(
\
BFancySignalName
.
Something
)
,
.
\
AFancySignalName
[
3
]
.
SomethingElse
(
\
BFancySignalName
.
SomethingElse
)
)
;
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