editors/TextViewer.py
changeset 1521 e44950d4c218
parent 1509 7aaf850d8d1c
child 1548 3ebc08f75fef
--- a/editors/TextViewer.py	Wed Aug 24 13:08:13 2016 +0300
+++ b/editors/TextViewer.py	Mon Sep 05 16:47:34 2016 +0300
@@ -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)