octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60649] Incorrect indentation for switch state


From: PIERRE LABRECHE
Subject: [Octave-bug-tracker] [bug #60649] Incorrect indentation for switch statement , cases, and otherwise clause
Date: Thu, 20 May 2021 13:13:04 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60649>

                 Summary: Incorrect indentation for switch statement , cases,
and otherwise clause
                 Project: GNU Octave
            Submitted by: pierre5018
            Submitted on: jeu. 20 mai 2021 13:13:02 EDT
                Category: GUI
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: PIERRE LABRECHE
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Point #1:
A switch statement should be indented one level, all cases and otherwise
clause indented at the same level.

The current auto indentation gives:
    switch r
      case a
        do_a 
      case b
        do_b
      case c
        do_c
    otherwise
      do_otherwise
  endswitch



The desired auto indentation is:
 
    switch r
      case a
        do_a 
      case b
        do_b
      case c
        do_c
      otherwise
        do_otherwise
    endswitch


Point #2: 
As the user types "on the go" switch statements from scratch, the indentation
is messy. 






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60649>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]