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

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

[Octave-bug-tracker] [bug #55276] Indent code does not indent "else" pro


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55276] Indent code does not indent "else" properly
Date: Sat, 12 Jan 2019 16:38:08 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Follow-up Comment #9, bug #55276 (project octave):

> the case, case ident isnt valid code is, it? as there should be a statement
after the case, before the next case. 

I think it's valid, just useless. Each case is a no-op there. But the same
thing happens if you add code:


function foo(x)
  switch x
    case 1
      y = 1;
      case 2
        y = 2;
        case 3
          y = 3;
          case 4
            y = 4;
  end
end



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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