Skip to content

Commit 24bcf8a

Browse files
authored
Merge pull request #1534 from JHertz5/issue-1533
Issue#1533: Corrected token pairs for `variable_403`
2 parents 9a2414e + 0f07547 commit 24bcf8a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

tests/variable/rule_403_test_input.fixed.vhd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ begin
4747
others => 'X'
4848
);
4949

50+
variable v_result : string(1 to
51+
2);
52+
5053
begin
5154

5255
end process;

tests/variable/rule_403_test_input.vhd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ begin
3838
others => 'X'
3939
);
4040

41+
variable v_result : string(1 to
42+
2);
43+
4144
begin
4245

4346
end process;

vsg/rules/variable/rule_403.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from vsg.token import variable_declaration as token
55

66
lTokenPairs = []
7-
lTokenPairs.append([token.variable_keyword, token.semicolon])
7+
lTokenPairs.append([token.assignment_operator, token.semicolon])
88

99

1010
class rule_403(Rule):

0 commit comments

Comments
 (0)