diff --git a/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py b/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py index 5ae3b47d..4948c297 100644 --- a/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py +++ b/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py @@ -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 diff --git a/vsg/tests/generic/rule_016_test_input.fixed.vhd b/vsg/tests/generic/rule_016_test_input.fixed.vhd index 04127218..7efad74e 100644 --- a/vsg/tests/generic/rule_016_test_input.fixed.vhd +++ b/vsg/tests/generic/rule_016_test_input.fixed.vhd @@ -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; diff --git a/vsg/tests/generic/rule_016_test_input.vhd b/vsg/tests/generic/rule_016_test_input.vhd index 67251c4e..86033a7a 100644 --- a/vsg/tests/generic/rule_016_test_input.vhd +++ b/vsg/tests/generic/rule_016_test_input.vhd @@ -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;