vhdl-style-guide/vsg/rules/selected_assignment/rule_100.py

40 lines
894 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules.whitespace_after_token import Rule
lTokens = []
lTokens.append(token.concurrent_selected_signal_assignment.with_keyword)
lTokens.append(token.selected_force_assignment.with_keyword)
lTokens.append(token.selected_variable_assignment.with_keyword)
lTokens.append(token.selected_waveform_assignment.with_keyword)
class rule_100(Rule):
"""
This rule checks for a single space after the **with** keyword.
|configuring_whitespace_rules_link|
**Violation**
.. code-block:: vhdl
with mux_sel select addr <=
"0000" when 0,
"0001" when 1,
"1111" when others;
**Fix**
.. code-block:: vhdl
with mux_sel select addr <=
"0000" when 0,
"0001" when 1,
"1111" when others;
"""
def __init__(self):
super().__init__(lTokens)