[Textmate] Lambda with attribute

Open
#303 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
tooling

Research direction

Start with the repository's C# syntax grammar and reproduce the reported examples in VSCode 1.85.1 using the Dark Plus theme. Compare highlighting for attributes on lambda parameters, return attributes, and attributed lambda expressions; done means these forms are colorized correctly without regressing the surrounding C# syntax.

Written by the indexing model from the issue text.

Description

Details

What editor are you seeing the problem in? (e.g. Atom, Visual Studio Code, etc.)
VSCode

What version of the editor are you using?
1.85.1
What color theme are you using?
Dark plus

Repro

var concat = ([DisallowNull] string a, [DisallowNull] string b) => a + b;
var inc = [return: NotNullIfNotNull(nameof(s))] (int? s) => s.HasValue ? s++ : null;
Func<string?, int?> parse = [ProvidesNullCheck] (s) => (s is not null) ? int.Parse(s) : null;

image

Please provide a code example and (optionally) a screenshot demonstrating the problem.

Dominant language
TypeScript
Stars
78
Forks
43
Avg merge
34m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/csharp-tmLanguage

All issues in dotnet/csharp-tmLanguage

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.