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

14 lines
365 B
Python

from vsg import parser
from vsg.rules import case_item_rule
class rule_004(case_item_rule):
'''
Checks the "context" keyword has proper case.
'''
def __init__(self):
case_item_rule.__init__(self, 'context', '004', parser.context_keyword)
self.regionBegin = parser.context_keyword
self.regionEnd = parser.context_semicolon