codefori / vscode-rpgle

RPGLE language tools for VS Code
MIT License
39 stars 18 forks source link

Linter doesn't properly handle /undefine directive #310

Closed brandonp42 closed 4 months ago

brandonp42 commented 4 months ago

If I use /DEFINE and /UNDEFINE in a RPGLE program, the linter tells me that my source is at the incorrect indentation level.

It looks like in tokens.ts it's saying there is a /UNDEFINED directive (note the extra D) but according to the RPG manual I don't see that, just /UNDEFINE.

Here's some example code:

**free

/define #stuff
// do exciting things here
/undefine #stuff

dcl-ds gPSDS psds qualified;
  pgmName *proc;
end-ds;

*inlr = *on;
return;