19 lines
414 B
Python
19 lines
414 B
Python
|
|
from vsg.token import package_declaration as token
|
|
|
|
|
|
def set_indent(iCurrentIndent, bLabelFound, oToken):
|
|
|
|
iIndent = iCurrentIndent
|
|
bMyLabelFound = bLabelFound
|
|
|
|
if isinstance(oToken, token.package_keyword):
|
|
oToken.set_indent(iIndent)
|
|
iIndent += 1
|
|
|
|
if isinstance(oToken, token.end_keyword):
|
|
iIndent -= 1
|
|
oToken.set_indent(iIndent)
|
|
|
|
return iIndent, bMyLabelFound
|