Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Braces matching in Razor
The original implementation seems to be matching braces :
{ }
@if (true) {
{
foo
bar
} }
yields
{ }
{
foo
bar
}
while
{ }
@if (true) {
{
foo
bar
}
yields a parse error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment