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

Not working on JSX files. #68

Closed mrbodich closed 7 years ago

mrbodich commented 7 years ago

JSX is similar to JS. Please, add JSX support just like JS copy, the same. Thanks.

Hirse commented 7 years ago

Please specify the version you are using and provide and example file and the desired output. Thanks.

mrbodich commented 7 years ago

I am using 0.7.0, I think the latest. Brackets 1.7.0. Here is an example of JSX file. JSX is also javascript language but with support of Adobe additional functions needed for Photoshop app or Illustrator. It is absolutely the same with JS. Result should be the same with JS files, showing functions list. So please just make a copy of JS language for JSX files, it will be enough I guess, or make JS language affect *.jsx files also. Thanks. temp.jsx.zip

mrbodich commented 7 years ago

Tell me please, is it possible to make this improvement?

Hirse commented 7 years ago

Yes, it is possible to make that improvement. No, JSX is not absolutely the same as JS, it has an extended syntax. So, not all JS parser will work on JSX. However, I was looking into replacing my JS parser anyway, so I will look into JSX support.

Hirse commented 7 years ago

Also, this is a duplicate of #65.

mrbodich commented 7 years ago

Thank you very much! Works great, it really helps now.