31 lines
570 B
Python
31 lines
570 B
Python
|
|
from vsg.rules import token_indent
|
|
|
|
from vsg import token
|
|
|
|
lTokens = []
|
|
lTokens.append(token.attribute_declaration.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 max_delay : time;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
signal sig1 : std_logic;
|
|
attribute max_delay : time;
|
|
'''
|
|
|
|
def __init__(self):
|
|
token_indent.__init__(self, 'attribute_declaration', '300', lTokens)
|