vscode-rpgle icon indicating copy to clipboard operation
vscode-rpgle copied to clipboard

improved support for special characters in variables

Open alessandroToninelli opened this issue 1 year ago • 3 comments
trafficstars

this is my simple SQLRPGLE Program

 /copy QCPYSRC,SPEC_H

      dcl-ds $test qualified;
         data varchar(10);
       end-ds;

       $test.data = 'test';

       $test.
    
       return;

The name of the DS write with special character '$', the content assit not resolve its scope and i cannot get the sub field

alessandroToninelli avatar Sep 26 '24 12:09 alessandroToninelli

We've had this before. I need to track the issue down, but I am going to rename the title to better reflect the issue.

worksofliam avatar Sep 26 '24 13:09 worksofliam

ok perfect. I will wait for a resolution

alessandroToninelli avatar Sep 26 '24 13:09 alessandroToninelli

any updates?

alessandroToninelli avatar Oct 02 '24 07:10 alessandroToninelli

@sebjulliand any ideas if you know the API to make the language server add support for these odd characters?

worksofliam avatar Apr 22 '25 14:04 worksofliam

I found it:

  languages.setLanguageConfiguration(`rpgle`, {
    wordPattern: 
  })

Just need help building up the regex.

worksofliam avatar Apr 22 '25 15:04 worksofliam