vhdl-style-guide/vsg/rules/loop_statement/rule_102.py

33 lines
584 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_before_token import Rule
lTokens = []
lTokens.append(token.loop_statement.loop_keyword)
class rule_102(Rule):
"""
This rule checks for a single space before the **loop** keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
for x in (0 to 30)loop
for x in (0 to 30) loop
**Fix**
.. code-block:: vhdl
for x in (0 to 30) loop
for x in (0 to 30) loop
"""
def __init__(self):
super().__init__(lTokens)