fix(sql): split declaration-only Oracle package bodies

Closes #6943
This commit is contained in:
t8y2 committed 2026-08-22 04:37:01 +00:00
1 parent f3d2b6cb01
commit 355f34f3c7
3 files changed
+30 -3

No files matched your search

@@ -1782,7 +1782,7 @@ function oraclePlSqlBlockEnd(sql: string): number | null {
for (let index = 0; index < tokens.length; index += 1) {
const token = tokens[index];
if (token.kind === "semicolon") {
const complete = objectKind === "spec" ? stack.length === 0 : sawBegin && stack.length === 0;
const complete = objectKind !== null ? stack.length === 0 : sawBegin && stack.length === 0;
if (complete) return token.to;
continue;
}