Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Switch statement #130

Open
Open
@mastazi

Description

@mastazi

In a php switch statement, the lines immediately following a : are supposed to be indented (in this case, the line starting with print and break should be indented with respect to the line with the case statement):

<?php
$myvar = 2
switch($myvar){
  case 1:
    print 'One';
    break;
}

but instead, in Atom, they are not indented:

<?php
$myvar = 2
switch($myvar){
  case 1:
  print 'One';
  break;
}

The same issue happens when pasting code (within a case block) from an external source.

Reproduced in safe mode with updated Atom and searched for existing issues as follows:
is:issue user:atom -repo:atom/electron "switch statement"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions