-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Support comma-first style for variable declaration #388
Comments
Humm, I just noticed that the more classic style is not supported correctly either: var a = 47,
b = 48,
c = 49; Instead: var a = 47,
b = 48,
c = 49; |
@vincentbernat je vais regarder cela |
@vincentbernat please test the last commit |
That was fast! var a= 47
, b = 48
, c = 49
; Usually, the semi-colon is aligned with the comma, but I can live with that. However, it seems that when there is a function call, things go awry: var a = require('titi')
, b = 48
, c = 49
; |
@vincentbernat I've committed a new patch |
❦ 14 décembre 2014 12:02 -0800, fxbois notifications@github.com :
This one works fine, thanks!I don't know half of you half as well as I should like; and I like less |
Hey!
The comma-first style for variable declaration looks like that:
This is a somewhat popular choice because it is easier to spot a missing comma and adding a variable at the end doesn't produce a two-line patches.
Currently, web-mode does that:
Funny enough, if I replace one value by a function call, I get this:
Would it be possible to support this comma-first style?
The text was updated successfully, but these errors were encountered: