32 lines
589 B
Python
32 lines
589 B
Python
|
|
from vsg.rules import token_case
|
|
|
|
from vsg import token
|
|
|
|
lTokens = []
|
|
lTokens.append(token.alias_declaration.alias_keyword)
|
|
|
|
|
|
class rule_500(token_case):
|
|
'''
|
|
This rule checks the **alias** keyword has proper case.
|
|
|
|
|configuring_uppercase_and_lowercase_rules_link|
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
ALIAS alias_designator is name;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
alias alias_designator is name;
|
|
'''
|
|
|
|
def __init__(self):
|
|
token_case.__init__(self, 'alias_declaration', '500', lTokens)
|
|
self.groups.append('case::keyword')
|