vhdl-style-guide/vsg/rules/external_variable_name/rule_102.py

30 lines
625 B
Python

# -*- coding: utf-8 -*-
from vsg.rules.whitespace_before_token import Rule
from vsg.token import external_variable_name as token
class rule_102(Rule):
"""
This rule checks for a single space before the colon.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
<< variable dut.fifo.wr_en: std_logic >>
<< variable dut.fifo.wr_en : std_logic >>
**Fix**
.. code-block:: vhdl
<< variable dut.fifo.wr_en : std_logic >>
<< variable dut.fifo.wr_en : std_logic >>
"""
def __init__(self):
Rule.__init__(self, [token.colon])