Skip to content

pr-git-1682/Whathecode/master-v5

From: Steven Jeuris <steven.jeuris@3shape.com>

- 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 <steven.jeuris@gmail.com>

Submitted-As: https://lore.kernel.org/git/pull.1682.v5.git.git.1712180564927.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1682.git.git.1708882423691.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1682.v2.git.git.1709756493673.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1682.v3.git.git.1711613220277.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1682.v4.git.git.1711653257043.gitgitgadget@gmail.com
Assets 2