[TxMt] Feature: Shebang Syntax Type Recognition

Ciarán Walsh ciawal at gmail.com
Thu Aug 23 01:47:42 UTC 2007


On 22 Aug 2007, at 20:44, Alain O'Dea wrote:

> For example if the first line of the script named "do_some_stuff" was
> "#!/bin/env bash", then the file type would be a Bourne Shell script
> file and Shell script (bash) syntax would be turned on.

The shell script grammar includes the following:

firstLineMatch = '^#!.*(bash|zsh|sh|tcsh)';

so this should work already.

Try this from Terminal:

echo '#!/bin/env bash' | mate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070822/71a4ddcd/attachment.html>


More information about the textmate mailing list