Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

function with comment after the "def" does not appear in outline list #99

Closed gittar closed 6 years ago

gittar commented 7 years ago

Details about your environment

What did you do? Please include the actual source code causing the issue.

def plot1(ax, X=None, C=None):
    pass

def plot2(ax, X=None, C=None): #some comment
    pass

What did you expect to happen? How did you expect the Outline to look? Expected: plot1 and plot2 appear in outline list

What actually happened? How did the Outline actually look? Observed: only plot1 appeared in the outline list

Likely reason: The comment (which is valid python)

Hirse commented 6 years ago

Yes, the comment seems to be the issue here.

Hirse commented 6 years ago

Fixed in #102, should be in the next update.