diff --git a/tests/variable/rule_403_test_input.fixed.vhd b/tests/variable/rule_403_test_input.fixed.vhd index e14d4ce09..bc2627265 100644 --- a/tests/variable/rule_403_test_input.fixed.vhd +++ b/tests/variable/rule_403_test_input.fixed.vhd @@ -47,6 +47,9 @@ begin others => 'X' ); + variable v_result : string(1 to + 2); + begin end process; diff --git a/tests/variable/rule_403_test_input.vhd b/tests/variable/rule_403_test_input.vhd index 1043e7e9d..4e43f339b 100644 --- a/tests/variable/rule_403_test_input.vhd +++ b/tests/variable/rule_403_test_input.vhd @@ -38,6 +38,9 @@ begin others => 'X' ); + variable v_result : string(1 to + 2); + begin end process; diff --git a/vsg/rules/variable/rule_403.py b/vsg/rules/variable/rule_403.py index 42ae727e2..a06355ea2 100644 --- a/vsg/rules/variable/rule_403.py +++ b/vsg/rules/variable/rule_403.py @@ -4,7 +4,7 @@ from vsg.token import variable_declaration as token lTokenPairs = [] -lTokenPairs.append([token.variable_keyword, token.semicolon]) +lTokenPairs.append([token.assignment_operator, token.semicolon]) class rule_403(Rule):