vhdl-style-guide/vsg/rules/attribute_declaration/rule_100.py

32 lines
627 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_after_token import Rule
lTokens = []
lTokens.append(token.attribute_declaration.attribute_keyword)
lTokens.append(token.attribute_declaration.colon)
class rule_100(Rule):
"""
This rule checks for a single space after the following elements: **attribute** keyword and colon.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
attribute max_delay : time;
**Fix**
.. code-block:: vhdl
attribute max_delay : time;
"""
def __init__(self):
super().__init__(lTokens)