This is how it appears for ".r":
And this is how it appears for ".R" (the way it should be):
The workaround - simple edit the Snippet's filename, change it from .r to .R; that'll fix it.