lpcmanager

a160718d7987
Parents 0f8680be74f7
Children 95911ff0a039
Multiple line comment now works for ST.
--- a/LPCManager.py Wed Aug 16 12:32:41 2017 +0200
+++ b/LPCManager.py Mon Aug 21 10:40:47 2017 +0200
@@ -178,7 +178,7 @@
from editors.CodeFileEditor import VariablesTable
from editors.CodeFileEditor import VariablesEditor
from editors.CodeFileEditor import CodeEditor
-from editors.TextViewer import TextViewer, EditorPanel
+from editors.TextViewer import TextViewer, EditorPanel, LABEL_MODEL
from controls.CustomStyledTextCtrl import GetCursorPos
from controls import ProjectPropertiesPanel
from controls.SearchResultPanel import SearchResultPanel
@@ -1131,6 +1131,14 @@
self.Colourise(0, -1)
TextViewer.RefreshView = RefreshView
+
+def RefreshJumpList(self):
+ if self.TextSyntax == "IL" or self.TextSyntax == "ST":
+ self.Jumps = [jump.upper() for jump in LABEL_MODEL.findall(self.GetText())]
+ self.Colourise(0, -1)
+
+TextViewer.RefreshJumpList = RefreshJumpList
+
def VariablesEditorSetCollSize(self):
ColSizes = [20, 150] + [130] * (len(self.VariablesDefaultValue) - 2) + [300]
for col in range(self.Table.GetNumberCols()):