Fixing bug with rule generic_006. It was not handling generics with comments correctly.

This commit is contained in:
Jeremiah Leary 2020-11-08 14:45:58 -06:00
parent 24c76970a8
commit e65a60d43d
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;