vhdl-style-guide/vsg/rules/context/rule_013.py

32 lines
562 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case
lTokens = []
lTokens.append(token.context_declaration.is_keyword)
class rule_013(token_case):
"""
This rule checks the **is** keyword has proper case in the context declaration.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
context c1 IS
**Fix**
.. code-block:: vhdl
context c1 is
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::keyword")