18 lines
585 B
Python
18 lines
585 B
Python
|
|
from vsg.rules import multiline_alignment_between_tokens
|
|
|
|
from vsg import token
|
|
|
|
lTokenPairs = []
|
|
lTokenPairs.append([token.simple_variable_assignment.assignment, token.simple_variable_assignment.semicolon])
|
|
lTokenPairs.append([token.conditional_variable_assignment.assignment, token.conditional_variable_assignment.semicolon])
|
|
|
|
|
|
class rule_004(multiline_alignment_between_tokens):
|
|
'''
|
|
Checks the alignment of multiline variable assignments.
|
|
'''
|
|
|
|
def __init__(self):
|
|
multiline_alignment_between_tokens.__init__(self, 'variable_assignment', '004', lTokenPairs)
|