https://github.com/antlr/grammars-v4
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
Tip revision: c0b88108754fcfdb357c8c3a34751da144c687bc authored by Martin Karlgren on 09 March 2024, 13:42:37 UTC
[PlSql] Correctly parse package init blocks with simple statements (#3939)
[PlSql] Correctly parse package init blocks with simple statements (#3939)
Tip revision: c0b8810
Computing file changes ...