37 lines
638 B
Python
37 lines
638 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg import token
|
|
from vsg.rules import move_token_left_to_next_non_whitespace_token as Rule
|
|
|
|
lTokens = []
|
|
lTokens.append(token.generic_clause.semicolon)
|
|
|
|
|
|
class rule_021(Rule):
|
|
"""
|
|
This rule checks the semicolon is not on its own line.
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
U_FIFO : FIFO
|
|
generic (
|
|
G_WIDTH : integer
|
|
)
|
|
;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
U_FIFO : FIFO
|
|
generic (
|
|
G_WIDTH : integer
|
|
);
|
|
"""
|
|
|
|
def __init__(self):
|
|
super().__init__(lTokens)
|
|
self.bInsertWhitespace = False
|