Skip to content

Commit 3560160

Browse files
committed
Permit identifier at end of component declarations
1 parent be1aee9 commit 3560160

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hdlparse/minilexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
'''Minimalistic lexer engine inspired by the PyPigments RegexLexer'''
99

10-
__version__ = '1.0.4'
10+
__version__ = '1.0.5'
1111

1212
class MiniLexer(object):
1313
'''Simple lexer state machine with regex matching rules'''

hdlparse/vhdl_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
'component': [
8080
(r'generic\s*\(', None, 'generic_list'),
8181
(r'port\s*\(', None, 'port_list'),
82-
(r'end\s+component\s*;', 'end_component', '#pop'),
82+
(r'end\s+component\s*\w*;', 'end_component', '#pop'),
8383
(r'/\*', 'block_comment', 'block_comment'),
8484
(r'--.*\n', None),
8585
],

0 commit comments

Comments
 (0)