Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different settings for square bracket and parenthesis #424

Open
santhoshtr opened this issue Mar 15, 2014 · 1 comment
Open

Different settings for square bracket and parenthesis #424

santhoshtr opened this issue Mar 15, 2014 · 1 comment

Comments

@santhoshtr
Copy link

This is a question

As per Mediawiki javascript guidelines[1] we need to put spaces after '(' and before ')'. And no space after and before '[' and ']'. When I use "space_in_paren": true, setting it get applied to both square bracket and parenthesis. How can I use different settings for square brackets?

a = [1,2];
call(a);

Should be converted to

a = [1,2];
call( a );

[1] https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript

@nemoDreamer
Copy link

Also see #373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants