pombreda / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

Indentation fails if the function declaration is wrapped #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by chess.bl...@gmail.com on 30 May 2008 at 5:47