Skip to content

syntax highlighter no longer handles if/then/else #1718

@2TomLi

Description

@2TomLi

Describe the bug

Case description: When writing code, noticed that the syntax highlighter no longer handles if/then/else statements in the code editor.

We are using the code below, which contains if/then/else examples along with some incorrect syntax to show this behavior:

%macro Wait_for_Status;
%let _STATUS = OK;
data work.test;
infile StatusAL;
input var $ 2.;
call symput("_STATUS", var);
run;
%if ("&_STATUS." eq "OK")
%then %do;
%put Status on: &_STATUS.;
%put hello world;
%end;
%else %it ;
%esle...;
%JussiV...;
%mend;

Pasting this code into code editor will reveal the syntax highlighting is broken for if/then/else macro syntax.

Steps to reproduce

SAS code (if applicable)

Expected behavior

No response

Screenshots

No response

Client OS

No response

Extension version

v1.18.0

SAS version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions