Skip to content

feat: add support for C# - #206

Merged
Wansmer merged 1 commit into
Wansmer:mainfrom
zivarah:bl/c_sharp
Sep 23, 2026
Merged

Wansmer merged 1 commit into
Wansmer:mainfrom
zivarah:bl/c_sharp

Conversation

@zivarah

@zivarah zivarah commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Adds fairly comprehensive support for C#. Some of the target_nodes handling could be considered overkill and I wouldn't be opposed to trimming them if there are objections, but there's at least a full test suite showing that they all work.

Note the change to tests/minimal.lua to map the cs filetype to the c_sharp parser. I think that's only necessary because nvim-treesitter's mapping isn't loaded during testing, and this seemed like the easiest way to work around it. It seems that some of the tests that are failing (at least for me) on main are related to this as well e.g. the bash/sh mapping is also missing. Let me know if you want to handle this some other way like trying to source the nvim-treesitter mapping directly.

@zivarah

zivarah commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Ah, I just noticed #174 as well. Looks like that has stagnated and is less comprehensive though, so I think this PR probably supersedes that.

@Wansmer

Wansmer commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Thank you for your contribution!

@Wansmer
Wansmer merged commit 9f349ba into Wansmer:main Sep 23, 2026
1 of 2 checks passed
@Wansmer Wansmer mentioned this pull request Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants