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

PHP format doesn't run : Comments after last switch() instruction

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 3.0.4
    • Fix Version/s: Aptana Studio 3.0.5
    • Component/s: PHP
    • Labels:
    • Environment:

      Ubuntu 11.04

      Description

      If a comment it found after the last instrcution of a switch function, Aptana PHP auto-format raised the "Unable to format. See error log for details" error.

      Example NOK :
      switch ($a)

      { case 1 : break; /* This comment break PHP auto-format */ }

      Example OK :
      switch ($a)

      { case 1 : break; /* This comment DON'T BREAK PHP auto-format */ case 2 : break; }

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              mlechevalier Matthieu Lechevalier
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code