My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 75: Indentation fails if the function declaration is wrapped
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by chess.blitz, May 30, 2008
Our company style says that wrapped lines should be indented 4 characters,
but that function bodies should be indented 2 characters.

If I have a line that looks like this:

myReallyLongFunctionName =
    function(myVar) {

The first statement in the body of the function should get indented 2
characters from the start of the line. However, js2-mode only lets me
toggle between 0, 4, and 6 chars.

 
Sign in to add a comment

Hosted by Google Code