vhdl-style-guide/vsg/rules/concurrent/rule_401.py

43 lines
855 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import multiline_array_alignment as Rule
lTokenPairs = []
lTokenPairs.append([token.concurrent_simple_signal_assignment.assignment, token.concurrent_simple_signal_assignment.semicolon])
class rule_401(Rule):
"""
This rule checks the alignment of multiline concurrent simple signal 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):
super().__init__(lTokenPairs)
self.assignment_operator = token.concurrent_simple_signal_assignment.assignment