vhdl-style-guide/vsg/rules/process/rule_007.py

32 lines
668 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_between_token_pairs import Rule
lTokens = []
lTokens.append([token.process_statement.end_keyword, token.process_statement.end_postponed_keyword])
lTokens.append([token.process_statement.end_keyword, token.process_statement.end_process_keyword])
class rule_007(Rule):
"""
This rule checks for a single space after the **end** keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
end process proc_a;
**Fix**
.. code-block:: vhdl
end process proc_a;
"""
def __init__(self):
super().__init__(lTokens)