vhdl-style-guide/vsg/rules/package/rule_013.py

32 lines
585 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case_with_prefix_suffix
lTokens = []
lTokens.append(token.package_declaration.is_keyword)
class rule_013(token_case_with_prefix_suffix):
"""
This rule checks the **is** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
package fifo_pkg IS
**Fix**
.. code-block:: vhdl
package fifo_pkg is
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::keyword")