ctags-patterns-for-javascript icon indicating copy to clipboard operation
ctags-patterns-for-javascript copied to clipboard

Add support for space after method name

Open marlun opened this issue 7 years ago • 2 comments

Change the regex for shortand methods in object literals to allow space after the method name.

marlun avatar Aug 24 '18 19:08 marlun

Probably found why you haven't allowed space now, it will include if statements and similar as methods:

if (x === y) {

which is not something we want. Not sure how to remove that though.

marlun avatar Dec 18 '18 05:12 marlun

Probably found why you haven't allowed space now, it will include if statements and similar as methods:

if (x === y) {

which is not something we want. Not sure how to remove that though.

Yes, that's exactly why. That new method syntax is really troublesome.

romainl avatar Dec 18 '18 07:12 romainl