# -*- coding: utf-8 -*- from vsg import token from vsg.rules import multiline_constraint_structure as Rule lTokenPairs = [] lTokenPairs.append([token.variable_declaration.variable_keyword, token.variable_declaration.semicolon]) class rule_017(Rule): """ This rule checks the structure of variable constraints. |configuring_multiline_constraint_rules_link| .. NOTE:: The indenting of multiline variable constraints is handled by the rule `variable_400 `_. **Violation** .. code-block:: vhdl variable v_element : my_record(element1(7 downto 0), element2(3 downto 0)); **Fix** .. code-block:: vhdl variable v_element : my_record( element1(7 downto 0), element2(3 downto 0) ); """ def __init__(self): Rule.__init__(self) self.lTokenPairs = lTokenPairs