# -*- coding: utf-8 -*-

from vsg.rules.whitespace_between_token_pairs import Rule
from vsg.token import context_reference as token

lTokenPairs = []
lTokenPairs.append([token.keyword, token.library_name])
lTokenPairs.append([token.keyword, token.context_name])


class rule_002(Rule):
    """
    This rule checks for a single space between the **context** keyword and the context selected name.

    |configuring_whitespace_rules_link|

    **Violation**

    .. code-block:: vhdl

       context   c1;

    **Fix**

    .. code-block:: vhdl

       context c1;
    """

    def __init__(self):
        super().__init__(lTokenPairs)
