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

16 lines
375 B
Python

from vsg import parser
from vsg.rules import case_item_rule
class rule_016(case_item_rule):
'''
Checks the context identifier has proper case.
'''
def __init__(self):
case_item_rule.__init__(self, 'context', '016', parser.context_end_identifier)
self.regionBegin = parser.context_keyword
self.regionEnd = parser.context_semicolon