Hi Alex,
Glad you find it useful!
Do you mean that the rules you posted have to be put before
{
"name": "Rails/Ruby on Rails",
"rules":
{"function": {"name": "is_rails_file", "source": "is_rails_file.py"}}
]
},
Or they don’t work? Will you please post the entirety of DetectSyntax.sublime-settings (your customized one), minus comments? I’d like to figure out why that happens. From looking at the rules, there should be no reason why the is_rails_file function would hit. It looks only for .rb/.rake files in a Rails directory structure.