Toad World® Forums

6.4b formatter parsing problem with conditional compilation


#1

CREATE OR REPLACE

PACKAGE pack1

is

END pack1;

/

CREATE OR REPLACE

PACKAGE BODY pack1 IS

PROCEDURE prc1 IS

BEGIN

IF TRUE THEN

IF TRUE

OR NOT TRUE THEN

null;

$IF TRUE $then

ELSE

null;

$END

END IF;

ELSE

null;

END IF;

END prc1;

PROCEDURE prc2 IS

BEGIN

NULL;

$IF TRUE $THEN

null;

$END

END prc2;

PROCEDURE prc3 IS

BEGIN

null;

END prc3;

END pack1;

11:55:31 ERROR line 26, col 11, ending_line 26, ending_col 14,

11:55:31 Found: ‘prc3’

11:55:31 Expecting: ; -or- := -or- . -or- @ -or- ( ROW

BTW. Toad 10.5.1 has same problem

/

It compiles(Oracle 10.1), but can’t be formatted:


#2

Hi Marko,

Thank you for reporting this issue. We have upgraded the formatter component in our current internal build and it fixes this issue. You can check this out when next beta is available.

Thanks,
Vincent