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

19 lines
544 B
Python

from vsg.rules import move_item_next_to_another_item_rule
from vsg.token import context_declaration as token
class rule_006(move_item_next_to_another_item_rule):
'''
Checks the context identifier is on the same line as the context keyword.
'''
def __init__(self):
move_item_next_to_another_item_rule.__init__(self, 'context', '006', token.identifier, token.is_keyword)
self.solution = None
self.subphase = 2
self.regionBegin = token.context_keyword
self.regionEnd = token.semicolon