Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds fixes for multi var indent for comma first
Also comments out the multi var indent
- Loading branch information
1 parent
870ffca
commit 079c5ad
Showing
1 changed file
with
33 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
079c5ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After applying this commit, multi-line var statements ONLY work with comma-first style.
See: https://gist.github.com/bcrescimanno/5144215
Edit: It did, however, fix the insanity I was seeing around nested returns and functions.
079c5ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I intentionally commented out the multi-var statement indentation but left the comma-first style indent.
There are lot of edge cases with the multi-var indent
I want to refine the syntax file and add plenty of unit tests before I turn this on again so it can work as expected without any limitations.
The comma-first patch, for now, seems to work great and I haven't found any cases where it works incorrectly yet so I kept that in.
079c5ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh...I see it now in the commit notes. Sorry for the noise.