From b89739930f06e12a4cd35a31fdc65d18acd8349d Mon Sep 17 00:00:00 2001 From: JHertz5 Date: Tue, 30 Dec 2025 20:33:51 +0000 Subject: [PATCH 1/2] Issue#1533: Corrected token pairs for variable_403. --- vsg/rules/variable/rule_403.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): From 0f075470a94cda84400a51c8307933ac65452e14 Mon Sep 17 00:00:00 2001 From: JHertz5 Date: Tue, 30 Dec 2025 20:36:59 +0000 Subject: [PATCH 2/2] Issue#1533: Updated tests for variable_403 to protect against failure case. --- tests/variable/rule_403_test_input.fixed.vhd | 3 +++ tests/variable/rule_403_test_input.vhd | 3 +++ 2 files changed, 6 insertions(+) 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;