Limit sideways definitions to specific filetypes

The ruby ones are conflicting with some other ones, as expected.