diff --git a/vsg/tests/process/process_test_input.vhd b/vsg/tests/process/process_test_input.vhd index 6209ab09..839c8b93 100644 --- a/vsg/tests/process/process_test_input.vhd +++ b/vsg/tests/process/process_test_input.vhd @@ -130,7 +130,12 @@ proc_name : process (one, two, three) is begin end process; - + +--PROC_NAME : process (one) is +-- +-- begin +-- +-- end process; end architecture ARCH; diff --git a/vsg/tests/vhdlFile/test_vhdlFile_process.py b/vsg/tests/vhdlFile/test_vhdlFile_process.py index d9d7c565..4d2c10ee 100644 --- a/vsg/tests/vhdlFile/test_vhdlFile_process.py +++ b/vsg/tests/vhdlFile/test_vhdlFile_process.py @@ -11,7 +11,7 @@ oFileProcess = vhdlFile.vhdlFile(os.path.join(os.path.dirname(__file__),'..','pr class testVhdlFileMethods(unittest.TestCase): def test_comment_assignment(self): - lExpected = [8,21,50,76,83,90,114] + lExpected = [8,21,50,76,83,90,114,134,135,136,137,138] # Generic actual list lActual = [] for iIndex, oLine in enumerate(oFileProcess.lines): @@ -101,7 +101,7 @@ class testVhdlFileMethods(unittest.TestCase): self.assertEqual(lActual, lExpected) def test_end_architecture_assignment(self): - lExpected = [135] + lExpected = [140] # Generic actual list lActual = [] for iIndex, oLine in enumerate(oFileProcess.lines): diff --git a/vsg/vhdlFile/classify/process.py b/vsg/vhdlFile/classify/process.py index b4b8205d..b098194b 100644 --- a/vsg/vhdlFile/classify/process.py +++ b/vsg/vhdlFile/classify/process.py @@ -19,12 +19,12 @@ def classify_process_keyword(dVars, oLine): oLine.insideProcess = True oLine.indentLevel = dVars['iCurrentIndentLevel'] dVars['iCurrentIndentLevel'] += 1 - if re.match('^\s*\S+\s*:\s*process', oLine.lineLower): + if re.match('^\s*\S+\s*:\s*process', oLine.lineLower) and not oLine.isComment: oLine.isProcessKeyword = True oLine.insideProcess = True oLine.indentLevel = dVars['iCurrentIndentLevel'] oLine.isProcessLabel = True - if re.match('^\s*\S+\s*:\s*process\s*$', oLine.lineNoComment): + if re.match('^\s*\S+\s*:\s*process\s*$', oLine.lineNoComment) and not oLine.isComment: dVars['iCurrentIndentLevel'] += 1