34 lines
712 B
Python
34 lines
712 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg import token
|
|
from vsg.rules import token_case_with_prefix_suffix
|
|
|
|
lTokens = []
|
|
lTokens.append(token.loop_statement.loop_label)
|
|
|
|
|
|
class rule_503(token_case_with_prefix_suffix):
|
|
"""
|
|
This rule checks the proper case of the label on a loop statement.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
LABEL : for index in 4 to 23 loop
|
|
Label : for index in 0 to 100 loop
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
label : for index in 4 to 23 loop
|
|
label : for index in 0 to 100 loop
|
|
"""
|
|
|
|
def __init__(self):
|
|
super().__init__(lTokens)
|
|
self.groups.append("case::label")
|