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

31 lines
636 B
Python

from vsg.rules import token_indent
from vsg import token
lTokens = []
lTokens.append(token.attribute_specification.attribute_keyword)
class rule_300(token_indent):
'''
This rule checks the indent of the **attribute** keyword.
**Violation**
.. code-block:: vhdl
signal sig1 : std_logic;
attribute coordinate of comp_1 : component is (0.0, 17.5);
**Fix**
.. code-block:: vhdl
signal sig1 : std_logic;
attribute coordinate of comp_1 : component is (0.0, 17.5);
'''
def __init__(self):
token_indent.__init__(self, 'attribute_specification', '300', lTokens)