editors/TextViewer.py
branchpython3
changeset 3752 9f6f46dbe3ae
parent 3750 f62625418bff
child 3765 88fe6fc9fd38
equal deleted inserted replaced
3751:a80a66ba52d6 3752:9f6f46dbe3ae
    21 # You should have received a copy of the GNU General Public License
    21 # You should have received a copy of the GNU General Public License
    22 # along with this program; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    24 
    25 
    25 
    26 
       
    27 
       
    28 import re
    26 import re
    29 from functools import reduce
    27 from functools import reduce
    30 
    28 
    31 import wx
    29 import wx
    32 import wx.stc
    30 import wx.stc
    33 from six.moves import xrange
       
    34 
    31 
    35 from graphics.GraphicCommons import ERROR_HIGHLIGHT, SEARCH_RESULT_HIGHLIGHT, REFRESH_HIGHLIGHT_PERIOD
    32 from graphics.GraphicCommons import ERROR_HIGHLIGHT, SEARCH_RESULT_HIGHLIGHT, REFRESH_HIGHLIGHT_PERIOD
    36 from plcopen.structures import ST_BLOCK_START_KEYWORDS, IEC_BLOCK_START_KEYWORDS, LOCATIONDATATYPES
    33 from plcopen.structures import ST_BLOCK_START_KEYWORDS, IEC_BLOCK_START_KEYWORDS, LOCATIONDATATYPES
    37 from editors.EditorPanel import EditorPanel
    34 from editors.EditorPanel import EditorPanel
    38 from controls.CustomStyledTextCtrl import CustomStyledTextCtrl, faces, GetCursorPos
    35 from controls.CustomStyledTextCtrl import CustomStyledTextCtrl, faces, GetCursorPos