Re: What is a token

2020-04-12 Thread Mark Wieder via use-livecode
A token is passed among nodes in a network to allow subway entry. :P -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: What is a token

2020-04-12 Thread Mark Wieder via use-livecode
On 4/12/20 8:51 AM, Bob Sneidar via use-livecode wrote: How about: if “/*" is among the words of No, I've got it working here for the trivial case by replacing "/*" with numtochar(5) and then back again at the end of formatting. But that doesn't deal with the more general case of put "

Re: What is a token

2020-04-12 Thread Bob Sneidar via use-livecode
How about: if “/*" is among the words of Bob S > On Apr 12, 2020, at 8:47 AM, Mark Wieder via use-livecode > wrote: > > On 4/12/20 12:49 AM, Mark Waddingham via use-livecode wrote: > >> If you want to see if a line starts with a multi-line comment then you >> should do: >> if word 1 of

Re: What is a token

2020-04-12 Thread Mark Wieder via use-livecode
On 4/12/20 12:49 AM, Mark Waddingham via use-livecode wrote: If you want to see if a line starts with a multi-line comment then you should do:   if word 1 of tLine begins with "/*" then ... The solution isn't that simple, since multiline comments can begin anywhere in a line, as in /*

Re: What is a token

2020-04-12 Thread Bob Sneidar via use-livecode
Mark Wieder, I think what we will have to do when you encounter an open block comment that is not followed by a close block comment in a single line is toggle a variable to true, and check each subsequent line for a close block comment, formatting everything in between, then toggling the

Re: What is a token

2020-04-12 Thread Bob Sneidar via use-livecode
:-) That is exactly what I submitted to Mark Wieder as a fix. Am I becoming as smart as Mark Waddingham?? LOL! Bob S > On Apr 12, 2020, at 12:49 AM, Mark Waddingham via use-livecode > wrote: > > If you want to see if a line starts with a multi-line comment then you should > do: > > if

Re: What is a token

2020-04-12 Thread Mark Waddingham via use-livecode
On 2020-04-11 22:22, Bob Sneidar via use-livecode wrote: So the question is, should I submit this as a bug, or no? No you shouldn't as it isn't a bug :) The 'token' chunk is a wrapper around the internal routine the engine uses to divide a script text up into tokens which are then parsed.

What is a token

2020-04-11 Thread Bob Sneidar via use-livecode
Hi all. Recently in an effort to help Mark Wieder with the formatting portion of GLX2 v4, I came across an issue where the block comments were not formatting correctly, and any handler with a block comment didn’t auto indent. In looking through the code, I discovered that the handler