diff --git a/vsg/tests/comment/rule_010_test_input.fixed.vhd b/vsg/tests/comment/rule_010_test_input.fixed.vhd index dd14ac3c..1197c39b 100644 --- a/vsg/tests/comment/rule_010_test_input.fixed.vhd +++ b/vsg/tests/comment/rule_010_test_input.fixed.vhd @@ -86,3 +86,20 @@ package fifo_pkg is -- Comment 2c end package; +package body function_pkg is + + function init_axi4_aw ( + aw : in axi4_aw_t; + ival : std_logic := 'Z' + ) return axi4_aw_t is + begin + return ( + -- AXI4 Lite <<< HERE + addr => (aw.addr'range => ival), + -- AXI 4 Full <<< AND HERE + id => (aw.id'range => ival), + len => (aw.len'range => ival) + ); + end function init_axi4_aw; + +end package body function_pkg; diff --git a/vsg/tests/comment/rule_010_test_input.vhd b/vsg/tests/comment/rule_010_test_input.vhd index fafabc35..4647542e 100644 --- a/vsg/tests/comment/rule_010_test_input.vhd +++ b/vsg/tests/comment/rule_010_test_input.vhd @@ -86,3 +86,20 @@ package fifo_pkg is -- Comment 2c end package; +package body function_pkg is + + function init_axi4_aw ( + aw : in axi4_aw_t; + ival : std_logic := 'Z' + ) return axi4_aw_t is + begin + return ( + -- AXI4 Lite <<< HERE + addr => (aw.addr'range => ival), + -- AXI 4 Full <<< AND HERE + id => (aw.id'range => ival), + len => (aw.len'range => ival) + ); + end function init_axi4_aw; + +end package body function_pkg; diff --git a/vsg/tests/comment/test_rule_010.py b/vsg/tests/comment/test_rule_010.py index 68390ae3..f792dfdb 100644 --- a/vsg/tests/comment/test_rule_010.py +++ b/vsg/tests/comment/test_rule_010.py @@ -30,7 +30,7 @@ class test_comment_rule(unittest.TestCase): self.assertEqual(oRule.name, 'comment') self.assertEqual(oRule.identifier, '010') - lExpected = [3, 8, 10, 11, 14, 15, 16, 19, 27, 28, 33, 34, 66, 68, 74, 80, 86] + lExpected = [3, 8, 10, 11, 14, 15, 16, 19, 27, 28, 33, 34, 66, 68, 74, 80, 86, 99] oRule.analyze(self.oFile) self.assertEqual(lExpected, utils.extract_violation_lines_from_violation_object(oRule.violations)) diff --git a/vsg/vhdlFile/indent/indent_config.yaml b/vsg/vhdlFile/indent/indent_config.yaml index e0dc903f..ca64ed4f 100644 --- a/vsg/vhdlFile/indent/indent_config.yaml +++ b/vsg/vhdlFile/indent/indent_config.yaml @@ -428,7 +428,10 @@ indent: return_statement: return_keyword: token : current - after : current + after : '+1' + semicolon: + token : current + after : '-1' selected_force_assignment: with_keyword: token : current