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

Generate csharp.tmLanguage.yml using Roslyn

Open
#168 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
tooling

Research direction

Start by reading Roslyn's CSharpSyntaxGenerator and the generated CSharp.Generated.g4 referenced in the issue. Then inspect how this repository maintains csharp.tmLanguage.yml and determine the integration point for generation. Done means a repeatable tool or process generates the grammar for future C# language versions.

Written by the indexing model from the issue text.

Description

A tool was introduced to write Antlr grammar: https://github.com/dotnet/roslyn/tree/5cae62a/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator.

The result is: https://github.com/dotnet/roslyn/blob/5cae62a/src/Compilers/CSharp/Portable/Generated/CSharp.Generated.g4.

I think it would save some effort to support future versions of language, if the textmate grammar generation is also done by tool like CSharpSyntaxGenerator.

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.