vhdl-style-guide/vsg/rules/external_variable_name/rule_500.py

32 lines
606 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case
lTokens = []
lTokens.append(token.external_variable_name.variable_keyword)
class rule_500(token_case):
"""
This rule checks the **variable** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
<< VARIABLE dut.fifo.wr_en : std_logic >>
**Fix**
.. code-block:: vhdl
<< variable dut.fifo.wr_en : std_logic >>
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::keyword")