Index: compile_rules_graph.py ================================================================== --- compile_rules_graph.py +++ compile_rules_graph.py @@ -284,10 +284,13 @@ iActionBlock = 1 nPriority = int(m.group(2)[1:]) if m.group(2) else 4 else: print("Error at rule group: ", sLine, " -- line:", i) break + elif re.search(" +<<- ", sLine): + # actions + sActions += " " + sLine.strip() elif re.match("[  ]*$", sLine): # empty line to end merging if not lTokenLine: continue if not sActions: @@ -299,13 +302,10 @@ for j, sTokenLine in lTokenLine: dAllGraph[sGraphName].append((j, sRuleName, sTokenLine, iActionBlock, sActions, nPriority)) lTokenLine.clear() sActions = "" iActionBlock += 1 - elif re.search(" +<<- ", sLine): - # actions - sActions += " " + sLine.strip() elif sLine.startswith((" ")): # tokens lTokenLine.append([i, sLine.strip()]) else: print("Unknown line:")