15 lines
574 B
Python
15 lines
574 B
Python
import re
|
|
|
|
|
|
def concurrent(dVars, oLine):
|
|
if not (oLine.insideArchitecture and not oLine.insideProcess):
|
|
return
|
|
if re.match('^\s*\w+.*\s*<=', oLine.lineNoComment) or re.match('^\s*\w+\s*:\s*\w+.*\s*<=', oLine.lineNoComment):
|
|
if not oLine.insideAssert and not oLine.insideConcurrent:
|
|
oLine.indentLevel = dVars['iCurrentIndentLevel']
|
|
oLine.isConcurrentBegin = True
|
|
oLine.insideConcurrent = True
|
|
if oLine.insideConcurrent:
|
|
if re.match('.*;', oLine.lineNoComment):
|
|
oLine.isEndConcurrent = True
|