36 lines
790 B
Python
36 lines
790 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from vsg import token
|
|
from vsg.rules import token_case_in_range_bounded_by_tokens
|
|
|
|
lTokens = []
|
|
lTokens.append(token.generic_map_aspect.generic_keyword)
|
|
lTokens.append(token.generic_map_aspect.map_keyword)
|
|
|
|
oStart = token.component_instantiation_statement.label_colon
|
|
oEnd = token.component_instantiation_statement.semicolon
|
|
|
|
|
|
class rule_001(token_case_in_range_bounded_by_tokens):
|
|
"""
|
|
This rule checks the **generic map** keywords have proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
GENERIC MAP (
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
generic map (
|
|
"""
|
|
|
|
def __init__(self):
|
|
super().__init__(lTokens, oStart, oEnd)
|
|
self.groups.append("case::keyword")
|