Closed Gepar closed 5 years ago
Maybe the best way for now it's just to ignore them.
But i can't rewrite regexp to do this:
RegExpParser.regComment = (?:\\/\\*[\\s\\S]*?\\*\\/)|(?:--.*);
Conditional compilation has never been supported.
In spec, it has never work, because regexp consider only definition ending with character ;
regSpecSymbols =
(?:(${RegExpParser.REG_WORD}+)\s+(${RegExpParser.REG_WORD}+)\s(?:\s;|.[^;]*;))
In body, it was ignored before
I'll modify the regExp parser to support it...
Fix in version 1.6.3 I added some tests, see xyz_myPackage.sql
In current version (1.6.2) parser stops parsing file when meets some conditional compilation directives. Not in all cases, but very often. In previous version parser just ignore them. You can see it in outline.
Example in package body:
`create or replace package body is_there_anybody_out_there as
end;```
Example in package header: