Commit 872abb33 authored by sparonuz's avatar sparonuz
Browse files

[Issue#111]: Some formatting

parent 45715800
......@@ -202,7 +202,7 @@ class Module(ReadSourceFile):
self.lines = text.split("\n")
# Reset the list
self.blocks = []
for _index, _line in enumerate(self.lines):
for _index, _line in enumerate(self.lines):
_line = _line.strip()
_line = BasicFunctions.remove_literals(_line)
_pattern_sub = r"subroutine *(\w*) *\(*"
......@@ -238,13 +238,14 @@ class Module(ReadSourceFile):
try:
block = vault.get_procedure_by_name(block_name, self.module_name)
except Error.ProcedureNotFound:
block = None
block = None
if parent_block is None:
parent_block = block
# For every line, stores the block which the line belongs to
self.blocks.append(block)
class ModuleMain(Procedure):
def __init__(self, module):
super(ModuleMain, self).__init__("main", module)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment