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

31 lines
552 B
Python

# -*- coding: utf-8 -*-
from vsg.rules import blank_line_below_line_ending_with_token
from vsg.token import context_declaration as token
class rule_023(blank_line_below_line_ending_with_token):
"""
This rule adds a blank line below the **is** keyword.
|configuring_blank_lines_link|
**Violation**
.. code-block:: vhdl
context c1 is
library IEEE;
**Fix**
.. code-block:: vhdl
context c1 is
library IEEE;
"""
def __init__(self):
super().__init__([token.is_keyword])