vhdl-style-guide/vsg/rules/constrained_array_definition/rule_101.py

32 lines
615 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_after_token import Rule
lTokens = []
lTokens.append(token.constrained_array_definition.of_keyword)
class rule_101(Rule):
"""
This rule checks for a single space after the **of** keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
type t_u_array is array(1 downto 0) of unsigned;
**Fix**
.. code-block:: vhdl
type t_u_array is array(1 downto 0) of unsigned;
"""
def __init__(self):
super().__init__(lTokens)
self.number_of_spaces = 1