[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52659] end or endwhile of while statement mis
From: |
Marshall |
Subject: |
[Octave-bug-tracker] [bug #52659] end or endwhile of while statement misaligns code folding |
Date: |
Wed, 13 Dec 2017 14:10:12 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 |
URL:
<http://savannah.gnu.org/bugs/?52659>
Summary: end or endwhile of while statement misaligns code
folding
Project: GNU Octave
Submitted by: marsian
Submitted on: Wed 13 Dec 2017 07:10:11 PM UTC
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Marsian
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.1
Operating System: Microsoft Windows
_______________________________________________________
Details:
Code folding doesn't work right when there are while statements:
a = 1:5;
if true
a(1:2)+=3;
a(3:end)-=3;
b = a;
for i=1:3
b+=1;
while true
a = 3;
endwhile %code fold matched with for
if false
b=3;
b = a(end);
q = b;
endif
a = 1;
endfor%code fold matched with top if
c+3;
endif
a = 1:5;
if true
a(1:2)+=3;
endif
The wrong sections of code are folded in the case shown. I first mentioned
this in bug #51321, and although that bug was fixed, this issue persists. This
bug is also in the dev version.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52659>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #52659] end or endwhile of while statement misaligns code folding,
Marshall <=