Fixing bug with rule generic_006. It was not handling generics with comments correctly.
This commit is contained in:
parent
24c76970a8
commit
e65a60d43d
|
|
@ -45,7 +45,7 @@ class insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when
|
|||
lTokens = oToi.get_tokens()
|
||||
if utils.are_next_consecutive_token_types([parser.carriage_return], 1, lTokens):
|
||||
continue
|
||||
if utils.are_next_consecutive_token_types([parser.whitespace, parser.comment, parser.carriage_return], 1, lTokens):
|
||||
if utils.are_next_consecutive_token_types([parser.whitespace, parser.comment], 1, lTokens):
|
||||
continue
|
||||
if utils.are_next_consecutive_token_types([parser.comment, parser.carriage_return], 1, lTokens):
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
entity FIFO is
|
||||
generic (
|
||||
G_WIDTH : integer := 256;
|
||||
G_DEPTH : integer := 32
|
||||
G_WIDTH : integer := 256; -- Comment
|
||||
G_DEPTH : integer := 32 -- Comment
|
||||
);
|
||||
end entity FIFO;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
entity FIFO is
|
||||
generic (
|
||||
G_WIDTH : integer := 256;
|
||||
G_DEPTH : integer := 32
|
||||
G_WIDTH : integer := 256; -- Comment
|
||||
G_DEPTH : integer := 32 -- Comment
|
||||
);
|
||||
end entity FIFO;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue