Skip to content

Conversation

jlecour
Copy link

@jlecour jlecour commented Oct 2, 2013

Sometimes I use files that contains snippets of Ruby code but it's not a valid Ruby script as a whole. However I want to have Ruby syntax highlighting.

Since I've mapped the "Validate and Save" command to Cmd-S in my Textmate, I was having parse error notifications constantly when saving such files, with a carret jump to the offending line.

So I've added an exit clause when a special comment is found on the first line : no-verify.
It's inspired by the Git flag --no-verify to bypass hooks.

It shouldn't really conflict with the encoding magic comment since it's intended to be used in invalid Ruby files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant