Closed partap closed 11 years ago
Yeah, for now this looks like a use case for js3-consistent-level-indent-inner-bracket
. I'm not sure there's a general algorithmic solution that does what you want and doesn't cause problems with other indentation cases.
In general, js3-consistent-level-indent-inner-bracket
seems to do what people want when they're using styles that put commas at the end of lines. Let me know what you think.
Yeah, that looks good now. Thanks!
Closing since it doesn't look like anyone needs me to actually solve this further.
Kudos on the quick response, btw!
Basic file structure for an AMD module:
This works fine. However, if I have a module with a lots of deps, it looks more like this:
And js3-mode does the wrong thing...it bases the indent level from the start of "function", rather than the indent level of that line: