[Jprogramming] in script file, how to tell if line is top level?
'Pascal Jasmin' via Programming
programming at jsoftware.com
Wed Feb 8 17:18:41 UTC 2017
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 <bbill.lam at gmail.com>
To: 'Pascal Jasmin' via Programming <programming at jsoftware.com>
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
More information about the Programming
mailing list