33 lines
600 B
Python
33 lines
600 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg import token
|
|
from vsg.rules.whitespace_after_token import Rule
|
|
|
|
lTokens = []
|
|
lTokens.append(token.constant_declaration.colon)
|
|
|
|
|
|
class rule_005(Rule):
|
|
"""
|
|
This rule checks for a single space after the colon.
|
|
|
|
|configuring_whitespace_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
constant size :integer := 1;
|
|
constant width : integer := 32;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
constant size : integer := 1;
|
|
constant width : integer := 32;
|
|
"""
|
|
|
|
def __init__(self):
|
|
super().__init__(lTokens)
|