KaptainMicila / KaptainMicila/ZScript-VSCode
Anonymous functions break highlighting in the `States` block
- Dominant language
- No language data
- Stars
- 21
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description


With versus without anonymous functions. Instructions like `Loop`, `Goto`, `Stop` etc lose their purple (?) coloring.
The following for your copy/pasting convenience:
```cs
States
{
Spawn:
MODL A 1 Bright;
Loop;
Select:
TNT1 A 1
{
let wpn = invoker;
let pmo = wpn.GetPlayerPawn();
if (pmo)
{
wpn.MarkWeaponModelForUpdate();
if (cl_viewtilt)
DimensionsChoreograph.ExecuteDirect(pmo, "PlayerWeaponSelect");
}
A_Raise(int.max);
}
Goto Ready;
Deselect:
TNT1 A 1 A_Lower(int.max);
Loop;
LightDone:
0000 A 0 A_Light0();
Stop;
}
```
```cs
States
{
Spawn:
MODL A -1;
Stop;
Select:
0000 A 1 A_Raise(int.max);
Loop;
Deselect:
0000 A 1 A_Lower(int.max);
Loop;
LightDone:
0000 A 0 A_Light0();
Stop;
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.