Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
fbec3288
Commit
fbec3288
authored
Aug 08, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a typo in one of the regex sentences at vlog_parser
parent
7976f8dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vlog_parser.py
hdlmake/vlog_parser.py
+3
-2
No files found.
hdlmake/vlog_parser.py
View file @
fbec3288
...
...
@@ -154,7 +154,8 @@ class VerilogPreprocessor(object):
re
.
DOTALL
|
re
.
MULTILINE
)
return
re
.
sub
(
pattern
,
replacer
,
text
)
def
_degapize
(
text
):
""" Remove the not necessary 'gaps', i.e. escaped break lines"""
""" Create a list in which the verilog sentences are
stored in an ordered way -- and without empty 'gaps'"""
lempty
=
re
.
compile
(
r"^\s*$"
)
cline
=
None
lines
=
[]
...
...
@@ -625,7 +626,7 @@ class VerilogParser(DepParser):
r"(?:endmodule|endinterface)"
,
re
.
DOTALL
|
re
.
MULTILINE
)
m_instantiation
=
re
.
compile
(
r"(?:\A|\
\
s*)\s*(\w+)\s+(?:#\s*\(.*?\)\s*)?(\w+)\s*\(.*?\)\s*"
,
r"(?:\A|\s*)\s*(\w+)\s+(?:#\s*\(.*?\)\s*)?(\w+)\s*\(.*?\)\s*"
,
re
.
DOTALL
|
re
.
MULTILINE
)
def
do_module
(
text
):
"""Function to be applied by re.sub to every match of the
...
...
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