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 does not appear in outline list if formal parameter list contains line break #100

Open gittar opened 7 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):
    pass

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

What actually happened? How did the Outline actually look? Only plot1 appeared in outline list. Likely reason: The line break after X=None,

(the real example contains so many formal params that they do not fit in one line)

Hirse commented 6 years ago

Yes, that is the reason. Unfortunately based on the way functions are detected, this problem is not that easy to solve.