codefori / codefori/vscode-rpgle

Linter reports unmatched ENDIF/ENDDO when dcl-ds/end-ds spans multiple lines

Open
#585 1 comment 0 reactions 1 assignee Claimed by @bobcozzi View on GitHub
Dominant language
TypeScript
Stars
57
Forks
35
Avg merge
2d 3h
Merged PRs (30d)
1

Description

When a declare is split between two lines like this:
dcl-ds foo extname('SOMEFILE')
prefix(b4) end-ds;

The program compiles fine however all subsequent endif's and enddo's in calcs are flagged as unmatched.
For example:

if x;
...
endif; <-- this is unmatched.

If I put the dcl-ds on one line the issue goes away.

|Context|Version|
|-|-|
|Code for IBM i version|3.0.12|
|IBM Bob version|1.126.0|
|Operating System|win32_x64|

Active extensions

```
Bob Cozzi's CL Prompter and Formatter for IBM i (clprompter): 1.0.19
Bob Cozzi's IBM i RPGLE / RPG IV to RPG Free Format (rpgiv2free): 1.12.45
Bob Walkthroughs (bob-walkthroughs): 0.0.1
CL (vscode-clle): 1.2.6
COBOL (cobol): 26.7.21
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Codex – OpenAI’s coding agent (chatgpt): 26.721.30844
Configuration Editing (configuration-editing): 10.0.0
Db2 for IBM i (vscode-db2i): 2.0.2
Emmet (emmet): 10.0.0
Error Lens (errorlens): 3.28.0
Git (git): 10.0.0
Git Base (git-base): 10.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
IBM Bob (bob-code): 2.1.0
IBM Bob Premium Package for i (vscode-ibmi-bob): 1.1.0
IBM i Debug (ibmidebug): 3.0.4
IBM i FileSystem (vscode-ibmi-fs): 1.0.7
IBM i Project Explorer (vscode-ibmi-projectexplorer): 2.12.6
IBM i Testing (vscode-ibmi-testing): 1.3.4
IBMi Languages (ibmi-languages): 0.7.0
JSON Language Features (json-language-features): 10.0.0
JavaScript and TypeScript Language Features (typescript-language-features): 10.0.0
Merge Conflict (merge-conflict): 10.0.0
Node Debug Auto-attach (debug-auto-launch): 10.0.0
Project Manager (project-manager): 13.1.1
RPGLE (vscode-rpgle): 0.33.9
Server Ready Action (debug-server-ready): 10.0.0
Source Orbit (vscode-sourceorbit): 1.4.1
Terminal Suggest for VS Code (terminal-suggest): 1.0.1
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.