vhdl-style-guide/vsg/rules/attribute_specification/rule_503.py

32 lines
629 B
Python

# -*- coding: utf-8 -*-
from vsg import token
from vsg.rules import token_case
lTokens = []
lTokens.append(token.attribute_specification.is_keyword)
class rule_503(token_case):
"""
This rule checks the **is** keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
attribute coordinate of comp_1 : component IS (0.0, 17.5);
**Fix**
.. code-block:: vhdl
attribute coordinate of comp_1 : component is (0.0, 17.5);
"""
def __init__(self):
super().__init__(lTokens)
self.groups.append("case::keyword")