Multiline python comment not excluded from Outline view class or function declaration

ace

#1

I just discovered ace’s outline view, and I love it. I also discovered what appears to be a bug in the first file I viewed :smiley:

In a python file, a multi-line comment has a line beginning with ‘class’; this was picked up by the outline as a class even though it’s not one. The problem seems to exist for def as well, so it might extend further than I have time to test. Screenshot not available due to a secure networking environment.

Sample code:

def foo():
    '''
    This is a comment. Normall it could contain anything you want.
    class is not a problem in a comment, but the Ace Outline isn't working right here.
    def what can be said, it's not good either.
    Class does work okay because it's capitalised
    '''
    pass

def not_in_a_class():
    # class not a problem in a single line comment
    pass

class this_is_a_class():
    '''
    def a problem
    '''

    def function_in_a_class():
        '''
        class can not be put anywhere out of place,
        except it's totally valid in a comment!
        '''
        pass