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

33 lines
499 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_indent
lTokens = []
lTokens.append(token.context_declaration.context_keyword)
class rule_001(token_indent):
"""
This rule checks the indent of the **context** keyword.
**Violation**
.. code-block:: vhdl
context c1 is
library ieee;
**Fix**
.. code-block:: vhdl
context c1 is
library ieee;
"""
def __init__(self):
super().__init__(lTokens)