vhdl-style-guide/vsg/vhdlFile/classify/wait.py

12 lines
301 B
Python

import re
def wait(dVars, oLine):
if re.match('^\s*wait', oLine.lineLower):
if not oLine.insideEntity and \
not oLine.insideComponent and \
not oLine.insideInstantiation:
oLine.isWait = True
oLine.indentLevel = dVars['iCurrentIndentLevel']