Thanks, I got it now and I had never paid attention to it since I seldom use jqt ide and did not enable syntax coloring on it.
Apparently the scheme used in jqt syntax coloring is faulty, since if applies rules as independent and let the last rule to overwrite the previous one. Please feel free to file a bug report. Пн, 26 дек 2016, Henry Rich написал(а): > Yes, try > > commentstart =. 'NB.' E. line > > Henry Rich > > > On 12/26/2016 7:10 PM, bill lam wrote: > > I can't get what you meant. Did you mean there are some bugs in qtide > > syntax coloring? > > > > > > > > On 27 Dec, 2016 3:25 am, "Henry Rich" <[email protected]> wrote: > > > > The parenthesis and comment delimiter in J have the part of speech 'control > > word'. > > > > I didn't mean readable in the usual > > why-can't-anybody-write-comments-any-more > > sense, but as a reference to the Qt IDE's habit of treating quoted control > > words as active, and giving the wrong font to everything that follows. Half > > a line can get formatted as comments. If you actually DO have lots of > > comments, this is hard to sort out. > > > > Henry rich > > > > > > On 12/26/2016 1:42 PM, Raul Miller wrote: > > > > > I'm not sure what you mean by "containing control words" but code > > > readability issues are usually a call for better code. > > > > > > For this, perhaps (warning: lightly tested code): > > > > > > firstunmatched=:3 :0 > > > q=. unquoted=. -.~:/\y='''' > > > c=. uncommented=. -. +./\ q * 'NB.' E. y > > > n=. parendepth=. +/\q*c*-/'()'=/y > > > if. 0 < {: n do. > > > (n i. _1) <. 1+1 i:~0 1 E. n > > > else. > > > n i. _1 > > > end. > > > ) > > > > > > In other words: ignoring quoted and commented parenthesis, look for > > > the first occurrence of either an unbalanced right parenthesis or an > > > unbalanced left parenthesis. > > > > > > Let me know, though, if you see any flaws in this implementation. > > > > > > Thanks, > > > > > > > > ---------------------------------------------------------------------- > > 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 -- 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
