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

Reply via email to