Fixed a case where variables would match to the start marker and rule matching would...
authorimode <immediate.mode@gmail.com>
Fri, 16 Nov 2018 05:05:20 +0000 (21:05 -0800)
committerimode <immediate.mode@gmail.com>
Fri, 16 Nov 2018 05:05:20 +0000 (21:05 -0800)
modal.py

index e8a8be9..fc26ebe 100644 (file)
--- a/modal.py
+++ b/modal.py
@@ -41,6 +41,8 @@ def extract(queue):
     results = [];
     depth = 0;
     for element in queue:
+        if element[0] == "SRT":
+            return [];
         if element[0] == "INC":
             depth = depth + 1;
         if element[0] == "DEC":