vhdl-style-guide/vsg/rules/if_statement/rule_025.py

32 lines
536 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case
lTokens = []
lTokens.append(token.if_statement.if_keyword)
class rule_025(token_case):
"""
This rule checks the **if** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
IF (a = '1') then
**Fix**
.. code-block:: vhdl
if (a = '1') then
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::keyword")