Revision c0b88108754fcfdb357c8c3a34751da144c687bc authored by Martin Karlgren on 09 March 2024, 13:42:37 UTC, committed by GitHub on 09 March 2024, 13:42:37 UTC
Before this commit, the following package init block was parsed as a variable declaration:

```
create or replace package body MyPackage is
begin
  OtherPackage.DoSomething;
end;
```

because `variable_declaration` is:

```
: identifier CONSTANT? type_spec (NOT NULL_)? default_value_part? ';'
```

so the `identifier` would match `begin` and `type_spec` would match `OtherPackage.DoSomething`.

Making the `package_obj_body` match non-greedy fixes this.
1 parent c993c98
History
File Mode Size
ada2005
ada2012
ada83
ada95
pom.xml -rw-r--r-- 648 bytes

back to top