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

15 lines
458 B
Python

from vsg import parser
from vsg.rules import space_between_items_rule
class rule_002(space_between_items_rule):
'''
Checks for a single space between the context keyword and the context identifier
'''
def __init__(self):
space_between_items_rule.__init__(self, 'context', '002', parser.context_keyword, parser.context_identifier)
self.regionBegin = parser.context_keyword
self.regionEnd = parser.context_semicolon