Merged skvorl/beremiz into default
authorPaul Beltyukov <beltyukov.p.a@gmail.com>
Fri, 09 Sep 2016 11:47:00 +0500
changeset 1527 642bae8e8607
parent 1526 0fa5de94c131 (current diff)
parent 1521 e44950d4c218 (diff)
child 1528 d551f2925a86
Merged skvorl/beremiz into default
--- a/editors/TextViewer.py	Fri Aug 26 10:20:14 2016 +0500
+++ b/editors/TextViewer.py	Fri Sep 09 11:47:00 2016 +0500
@@ -629,6 +629,10 @@
                     self.SetStyling(current_pos - last_styled_pos + 2, STC_PLC_COMMENT)
                     last_styled_pos = current_pos + 1
                     state = SPACE
+                    if len(self.CallStack) > 0:
+                        current_call = self.CallStack.pop()
+                    else:
+                        current_call = None                    
             elif state == PRAGMA:
                 if line.endswith("}"):
                     self.SetStyling(current_pos - last_styled_pos, STC_PLC_EMPTY)