dotnet / dotnet/csharp-tmLanguage

Grammar causes freeze on on long chain of ternary operators

Open
#170 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
78
Forks
43
Avg merge
34m
Merged PRs (30d)
1

Description

Original issue filed by @nblog in https://github.com/microsoft/vscode/issues/87225
## Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.)
VS Code
What version of the editor are you using?
1.42 Insiders
What color theme are you using?
not applicable

## Repro
```csharp
CallEvent callEvent = new CallEvent(traceId, (ulong)((callNumber == 0UL) ? ((long)r["CallNumber"]) : ((long)callNumber)), (ulong)((long)r["Peer"]), (int)((long)r["Priority"]), (string)((obj2 == DBNull.Value) ? string.Empty : obj2), (EventFlags)((long)r["EventFlags"]), (ulong)((long)r["RetValue"]), (string)((obj3 == DBNull.Value) ? string.Empty : obj3), (string)((obj4 == DBNull.Value) ? string.Empty : obj4), (HookType)((long)r["HookType"]), (uint)((long)r["ChainDepth"]), (uint)((long)r["Cookie"]), (double)r["Time"], (double)r["GenerationTime"], (int)((long)r["ParamMainIndex"]), (uint)((long)r["Pid"]), (uint)((long)r["Tid"]), (string)((obj5 == DBNull.Value) ? string.Empty : obj5), (string)((obj6 == DBNull.Value) ? string.Empty : obj6), (string)((obj7 == DBNull.Value) ? string.Empty : obj7), (bool)r["Success"], ancestors);
```
This line cause the freeze.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.