[Newbies] loading Shout into trunk?

Ken G. Brown kbrown at mac.com
Thu Dec 9 00:42:45 UTC 2010

At 4:18 PM -0800 12/8/10, Edwin Castro apparently wrote:
>On Wed, Dec 8, 2010 at 3:56 PM, Ken G. Brown <<mailto:kbrown at mac.com>kbrown at mac.com> wrote:
>At 12:07 AM +0100 12/9/10, Levente Uzonyi apparently wrote:
>>On Wed, 8 Dec 2010, Ken G. Brown wrote:
>>>I'm wondering if there might be some way for the syntax highlighting to be made to reset itself instead of giving up completely after a syntax error and everything after that doesn't work at all?
>>>eg. the quote character? The double quote character should either be the beginning or end of a comment.
>>>I suppose it's more complicated than that.
>>It's more complicated. But why don't you put your text into a comment? Actually that's what comments are for in the language.
>Correct, however...
>I'm thinking of the case where I have a bunch of snippets in a Workspace, some of which would not work as pasted and therefore cause a syntax error but I still want to leave them as code and maybe later fix the syntax, or use the coloring to see where the syntax error might be occurring in the snippet.
>The first syntax error seems to mess syntax highlighting up forever more after the first error i the Workspace. I would like stuff that is actually commented out farther on to to keep showing as comments, even tho there is a syntax error in some code above on the page.
>Or the case where there was that invisible char as first char on the page and the commented section immediately after did not show as a comment color.
>It seems to me that the syntax checker could reset at the next double quote after a syntax error since that must be the start of an actual comment because there would never be an actual syntax error inside a quoted section... Yes?
>What if the syntax error is a missing double quote? The next double quote would indicate the end of the real comment thus causing more syntax errors. I think perhaps you should keep broken code or general text in comments so you can keep the rest of the syntax coloring.

Well, I don't suppose that would be an actual error to the syntax highlighter, at least not until it reached the end of the Workspace.
And it would be simple to see since no doubt everything would be comment colored after the first quote?


>Edwin G. Castro
>Beginners mailing list
>Beginners at lists.squeakfoundation.org

More information about the Beginners mailing list