
from vsg import token

from vsg.rules.whitespace_after_token import Rule

lTokens = []
lTokens.append(token.signal_declaration.assignment_operator)


class rule_102(Rule):
    '''
    This rule checks for a single space after the default assignment token.

    |configuring_whitespace_rules_link|

    **Violation**

    .. code-block:: vhdl

       signal wr_en : std_logic :=          '0';
       signal rd_en : std_logic :='1';

    **Fix**

    .. code-block:: vhdl

       signal wr_en : std_logic := '0';
       signal rd_en : std_logic := '1';
    '''
    def __init__(self):
        Rule.__init__(self, 'signal', '102', lTokens)
