Posted 19 years ago by NSXDavid
Avatar
I have a language that has constructions line this:

if (something = somethingelse)
  dosomething()
  dosomethingelse()
else
  dosomethingmore()
  domorethingsthanbefore()
  stopdoingthings()
.
Blocks are created by keywords and closed by period (aka Clarion, for those with a looooong language memory). I'm working on the outlining now.... but I don't see how to handle the case in the above example. Is it possible to have the if->else one block and the else->. another block? The else both stops and starts an outlineing span... but OutliningNodeAction doesn't seem to support that concept.

-- David

Comments (3)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi David... yes you are correct, a Token cannot both end one outlining node and start another at the same time. Of course it can collapse your entire IF statement as one node from the IF through the "." character.


Actipro Software Support

Posted 19 years ago by (Anonymous)
Avatar
Well, can I make this a feature request then?

-- David

ps. Nice work on this control... been fun working with it!
Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks David... appreciate the complement! I'll add it to the TODO list.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.