I seem to be having an issue with using razor syntax within a javascript block. The following compiles, however, I'm getting a syntax error warning.
An example of when this happens:
@section scripts{
<script type="text/javascript">
var rating = @Model.Rating;
</script>
}