Skip to content

Instantly share code, notes, and snippets.

@mayuki
Created January 7, 2011 05:36
Show Gist options
  • Select an option

  • Save mayuki/769146 to your computer and use it in GitHub Desktop.

Select an option

Save mayuki/769146 to your computer and use it in GitHub Desktop.
@* コンパイル可能 *@
@if (true) {
<p>コンパイルOK</p>
}
@* コンパイルエラー *@
@if (true) {
@if (true) {
<p>コンパイルエラー</p>
}
}
@* コンパイル可能 *@
@if (true) {
if (true) {
<p>コンパイルOK</p>
}
}
@* コンパイル可能 *@
@if (true) {
<script>
Nantoka.Foo = "Hauhau";
</script>
}
@* コンパイルエラー *@
<script>
@if (true) {
Nantoka.Foo = "Hauhau";
}
</script>
@* コンパイル可能 *@
<script>
@if (true) { <text>
Nantoka.Foo = "Hauhau";
</text>}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment