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

32 lines
574 B
Python

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