jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

Bug: undefined variable for name Default #18

Closed tolstovdmit closed 7 years ago

tolstovdmit commented 8 years ago

So in SyntaxFold.py:

class FoldPanelCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        self.panel_cache = []
        self.config_map = {}
        s = sublime.load_settings('syntax_fold.sublime-settings')
        configs = s.get("config")
        for conf in configs:
            c=dict()
            c['startMarker']=conf.get('startMarker')
            c['endMarker']=conf.get('endMarker')
            if conf['name']=="Default":
                descr=startMarker <--------------------------------------------------

this value is not defined console says the same NameError: global name 'startMarker' is not defined

Cheers

jamalsenouci commented 7 years ago

Thanks for raising the issue. This part of the code has been removed as part of the 2.0 update