|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
|
Last edited by ReedN on Tue Sep 21, 2010 5:55 am; edited 1 time in total |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sat Sep 18, 2010 5:38 pm |
Is this a change from previous versions? I'll add this to the bug list, but I don't consider this a major issue. Especially since reformat issues should have been reported months and months ago.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Sat Sep 18, 2010 5:41 pm |
It was working properly, but it changed with 3.27.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sat Sep 18, 2010 5:46 pm |
Actually, testing this now in v3.16 shows the same issue. The only thing that changed is 3.27 is the // comments no longer get indented. But the second #IF statement remains indented.
Edited: Even trying v2.37 the second #IF remains indented. So this has been a problem for a long time. |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Sat Sep 18, 2010 5:50 pm |
Hmm, perhaps I just noticed it now since the // comments just changed. I've been frustrated today editing my scripts because all my comments now need to be adjusted manually, so I was probably mistaken on the issue listed in this post due to the other reformatting change.
I recall you saying that the reformatting code is very complex. Perhaps if the reformatting simply adjusted the indentation it could be made more manageable. For my part the thing I most desire from it is the auto-indentation. This is also very similar to the other editors I'm familiar with which have similar auto-indentation features. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Sep 20, 2010 4:31 pm |
You cannot perform reformatting without a full language parser. Just doing auto-indentation is not easy. The editors that do it are doing it for languages that have a well defined language that can be easily parsed. zScript is not as easy to parse.
|
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Tue Sep 21, 2010 5:55 am |
Confirmed fixed in 3.28.
|
|
|
|
|
|