sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
117 stars 47 forks source link

fix: prevent decrease indentation when the word run is used as value #1039

Closed bitaoz closed 3 months ago

bitaoz commented 3 months ago

Summary Resolve https://github.com/sassoftware/vscode-sas-extension/issues/522

Testing 1 Enter "run" after "=", indentation will not be reduced. 2 Enter "run" instead of after "=", indentation will decrease normally.

Zhirong2022 commented 3 months ago

It will indent automatically after typing 'run;' in the scenario below

  1. Type code as following
    data _null_;
    a=1;
    b='
  2. Type Enter
  3. Type Enter
  4. Type run;
Zhirong2022 commented 3 months ago

Type code below, it will indent automatically after typing 'run;'

data _null_;
    a=1;
    /*
    comment
    */
run;

1.Type Enter after 'comment' 2.Type run;

Zhirong2022 commented 3 months ago

All issues have been fixed.