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
examples
README.md -rwxr-xr-x 109 bytes
desc.xml -rw-r--r-- 237 bytes
pdn.g4 -rw-r--r-- 2.4 KB
pom.xml -rw-r--r-- 1.6 KB

README.md

back to top