Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#93 ftyperc tweaks

closed
nobody
None
5
2008-10-30
2008-10-30
No

Here are some tweaks I have made to my ftyperc that others might find useful:

The first change replaces "_diff" with "diff", which I think is something you overlooked when applying a previous patch.

The next change adds a couple more first-line patterns for diff files. They attempt to match diffs output by CVS, like the one attached. Feel free to reject the one with the question mark if you think it is too general. It would be really nice if JOE could do this first line matching on the first line that gets piped in when piping into JOE.

The third change relaxes the first line pattern for Python in order to allow "#! /usr/bin/env python".

Discussion

  • Joe Allen
    Joe Allen
    2008-10-30

    Thanks for catching this, I've applied your patch including the python pattern.

     
  • Joe Allen
    Joe Allen
    2008-10-30

    • status: open --> closed
     
  • Hhmm... Previously, there was a slash before "python". Combined with the "\>" at the end, that meant "python" could not be a substring of another word. Perhaps you should add a "\<" before "python" in order to keep that restriction?