31 lines
550 B
Python
31 lines
550 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg import token
|
|
from vsg.rules import token_indent
|
|
|
|
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):
|
|
super().__init__(lTokens)
|