43 lines
822 B
Python
43 lines
822 B
Python
|
|
|
|
from vsg.rules import multiline_array_alignment as Rule
|
|
|
|
from vsg import token
|
|
|
|
lTokenPairs = []
|
|
lTokenPairs.append([token.simple_variable_assignment.assignment, token.simple_variable_assignment.semicolon])
|
|
|
|
|
|
class rule_401(Rule):
|
|
'''
|
|
This rule checks the alignment of multiline variable assignments that contain arrays.
|
|
|
|
|configuring_multiline_indent_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
wr_data :=
|
|
(
|
|
0,
|
|
65535,
|
|
32768
|
|
);
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
wr_data :=
|
|
(
|
|
0,
|
|
65535,
|
|
32768
|
|
);
|
|
'''
|
|
|
|
def __init__(self):
|
|
Rule.__init__(self, 'variable_assignment', '401', lTokenPairs)
|
|
self.assignment_operator = token.simple_variable_assignment.assignment
|