Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No verify on save #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

No verify on save #18

wants to merge 2 commits into from

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