Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-7847

JS formatter completely removes indentation inside "new function" body

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.4.0
    • Fix Version/s: Release 3.7.0
    • Component/s: Formatting, JS
    • Environment:

      Win 7prof 64, Eclipse Juno SR2, Aptana Studio 3 Plugin 3.4.0.201304151542-7E7G-7MEMVKUHgFcLgFbkKoz0t-7

      Description

      This is example of code:
      var test = new function(){
      var test = 1;
      this.test = function()

      { test++; }

      ;
      }();

      After using formatter it looks like this:
      var test = new function(){
      var test = 1;
      this.test = function()

      { test++; }

      ;
      }();

      Expected behavior - correct indentation/no changes.
      Also removing "new" from the above code allows formatter to work correctly

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                anatoly4 Anatoly Deryshev
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Source Code