7ute / symbols-list

An alternate symbol list sidebar for Atom.io text editor
GNU General Public License v3.0
32 stars 24 forks source link

Javascript Es6Methods with spaces before parenthesis are not recognized #58

Closed FelixBrendel closed 7 years ago

FelixBrendel commented 7 years ago

If you add \s*
inside the es6method: /^[^\S\n]*(?:[*][\s\n]+)?(?:async[\s\n]+)?(?!foreach|if|for|while|catch)([\w]+\(.*\))[\s\n]*{/gmi it becomes es6method: /^[^\S\n]*(?:[*][\s\n]+)?(?:async[\s\n]+)?(?!foreach|if|for|while|catch)([\w]+\s*\(.*\))[\s\n]*{/gmi and the methods are recognized correctly.

mbuc82 commented 7 years ago

Hello @FelixBrendel ,

thanks a lot for your contribution. The fix will be included in the upcoming release.

Best regards Marco