Commit e77147b
Fix multiline constant declaration in packages (rsim#207)
The regex in Variable.find required the semicolon to be on the same
line as the variable declaration. On Oracle 19c, sys.dbms_db_version
wraps the assignment to the next line:
version constant pls_integer :=
19;
Make the semicolon and trailing assignment optional in the regex
so the type name is matched regardless of line wrapping.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 412d59e commit e77147b
2 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
343 | 369 | | |
344 | 370 | | |
345 | 371 | | |
| |||
0 commit comments