Forums » Toad Extension for Eclipse » Toad Extension for Eclipse

Thread: Syntax Highlighting Error

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 5 - Pages: 1 - Last Post: Jun 15, 2012 1:18 AM by: Tomas
shahidc

Posts: 7
Registered: 9/7/11
Syntax Highlighting Error
Posted: Jun 12, 2012 3:36 PM
 
  Click to reply to this thread Reply

For me, the syntax highlighting issues haven't gone away for scripts involving comments and FOR loops.

As you can see it works fine as long as a comment doesn't exist outside the block.

Here's the snippet:

-- Comment
DECLARE
    l_dummy PLS_INTEGER;
BEGIN
    FOR i IN 1 .. 2
    LOOP
        null;       
    END LOOP;
END;
/

null


shahidc

Posts: 7
Registered: 9/7/11
Re: Syntax Highlighting Error
Posted: Jun 12, 2012 3:36 PM   in response to: shahidc
 
  Click to reply to this thread Reply

The problem seems to be the FOR.  If I change it to something else, highlighting comes back.




shahidc

Posts: 7
Registered: 9/7/11
Re: Syntax Highlighting Error
Posted: Jun 12, 2012 3:44 PM   in response to: shahidc
 
  Click to reply to this thread Reply

And here's the version of the plug-in which I'm using:





Tomas

Posts: 558
Registered: 1/26/11
Re: Syntax Highlighting Error
Posted: Jun 14, 2012 8:02 AM   in response to: shahidc
 
  Click to reply to this thread Reply

Hi Shahid,

thank you for your post. We just released version 1.6.0 (also supporting MySQL!). There were changes in the parser and I personally can reproduce your bug in 1.5.5, but not in 1.6.0. So you can update and check if it's ok.

Tomas



shahidc

Posts: 7
Registered: 9/7/11
Re: Syntax Highlighting Error
Posted: Jun 14, 2012 4:46 PM   in response to: Tomas
 
  Click to reply to this thread Reply

Thanks.

Well, it did fix the FOR issue.  But it looks like it introduced a bunch of other ones.  Did a couple quick tests and syntax seems to be broken for:

* Files containing more than one script
* Files which lead with more than one comment (or blank) line.

See attachments.

Thanks.



Tomas

Posts: 558
Registered: 1/26/11
Re: Syntax Highlighting Error
Posted: Jun 15, 2012 1:18 AM   in response to: shahidc
 
  Click to reply to this thread Reply

Hi,

it's a little embarassing, as I could not reproduce the missing highlight on your pictures. It may be a more specific bug. Please what is your configuration?
And, looking at the screenshots, I have a question. The run/compile icon (top left) is disabled. How did you get it disabled? Is the connection off?

Tomas




Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums