<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4018/csharp-method-generics, branch main</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=main</id>
<link rel='self' href='https://git.shady.money/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-04-05T22:21:43Z</updated>
<entry>
<title>userdiff: better method/property matching for C#</title>
<updated>2024-04-05T22:21:43Z</updated>
<author>
<name>Steven Jeuris</name>
<email>steven.jeuris@3shape.com</email>
</author>
<published>2024-04-03T21:42:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec0e3075d245afa3f3a848bd7bdc6376dea85fe0'/>
<id>urn:sha1:ec0e3075d245afa3f3a848bd7bdc6376dea85fe0</id>
<content type='text'>
- Support multi-line methods by not requiring closing parenthesis.
- Support multiple generics (comma was missing before).
- Add missing `foreach`, `lock` and  `fixed` keywords to skip over.
- Remove `instanceof` keyword, which isn't C#.
- Also detect non-method keywords not positioned at the start of a line.
- Added tests; none existed before.

The overall strategy is to focus more on what isn't expected for
method/property definitions, instead of what is, but is fully optional.

Signed-off-by: Steven Jeuris &lt;steven.jeuris@gmail.com&gt;
Acked-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
