there aren't ismultiline function, the front-end knows that for term session just because j engine had told it. for edit window, it is some guesswork, because words like verb define can be redefined to anything. scripts need actual execution to know which lines are inside input mode. furthermore results for another execution of the same script can be different if some global names have changed.
On 9 Feb, 2017 1:19 am, "'Pascal Jasmin' via Programming" < [email protected]> wrote: > I believe this approach is exposed in qt.ijs, as ismultiline function. It > doesn't handle all cases, as shown by ctrl-R and ctrl-return > > for example, > > V =: (3 :) > > 0 V > +: y > ) > > > > F =: 0 : 0 , 0 : 0 > asdf > ) > zxcv > ) > > > ----- Original Message ----- > From: bill lam <[email protected]> > To: 'Pascal Jasmin' via Programming <[email protected]> > Sent: Wednesday, February 8, 2017 1:20 AM > Subject: Re: [Jprogramming] in script file, how to tell if line is top > level? > > For syntax coloring, it scans from the beginning and search > matching 3 : 0 (or other equivalents) and a line without only > the token ) . > > Ср, 08 фев 2017, jprogramming написал(а): > > in 4 line script, > > > > 2+2 > > a =: 3 : 0 > > nested definition line > > > > ) > > > > the first 2 lines are "top level", but the last 2 are nested. > > > > is there any undocumented foreign that will return this status? How > does the console know that it is in " : 0 " mode? > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
