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

33 lines
663 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_before_token import Rule
lTokens = []
lTokens.append(token.attribute_specification.is_keyword)
class rule_101(Rule):
"""
This rule checks for a single space before the **is** keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
attribute coordinate of comp_1 : component is (0.0, 17.5);
**Fix**
.. code-block:: vhdl
attribute coordinate of comp_1 : component is (0.0, 17.5);
attribute coordinate of comp_1 : component is (0.0, 17.5);
"""
def __init__(self):
super().__init__(lTokens)