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

9 lines
153 B
Python

import re
def constant(dVars, oLine):
if re.match('^\s*constant', oLine.lineLower):
oLine.isConstant = True
oLine.indentLevel = 1