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

[format] `run;` not indented in datasets proc #1179

Closed ShuguangSun closed 4 weeks ago

ShuguangSun commented 1 month ago

Describe the bug When Format Doucment, run; is indented, but it should be de-indented and keeps same level as proc.

proc datasets library=work nolist nodetails;
    delete &temptab.;
    run;

Environment (please complete the following information): Client OS: Windows 10 Extension version: v1.10.2]

scnwwu commented 4 weeks ago

PROC DATASETS supports RUN-group processing. run statement does NOT end PROC DATASETS. The formatting feature only outdent at procedure ending keyword, in this case, quit only.