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

36 lines
599 B
Python

from vsg.rules import token_case as Rule
from vsg import token
lTokens = []
lTokens.append(token.loop_statement.end_loop_keyword)
class rule_502(Rule):
'''
This rule checks the **loop** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
while (condition) loop
end LOOP;
**Fix**
.. code-block:: vhdl
while (condition) loop
end loop;
'''
def __init__(self):
Rule.__init__(self, 'loop_statement', '502', lTokens)
self.groups.append('case::keyword')