Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Textmate] Local function with attribute

Open
#304 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
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, vscode
Domain
tooling

Research direction

Reproduce the reported coloring problem in VS Code 1.85.1 using the C# snippet and compare the highlighting of the local function and its attributes. Inspect the syntax grammar rules used for these constructs; done means both method and parameter attributes receive the expected syntax coloring.

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

class C 
{
    static void Action()
    {
        [Attribute]
        static void M([Attribute]object obj) {}
    }
}

[AttributeUsage(AttributeTargets.Method | AttributeTargets.Parameter)]
class AttributeAttribute : Attribute { }

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

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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.