[TxMt] Feature: Shebang Syntax Type Recognition

Alain O'Dea alain.odea at gmail.com
Thu Aug 23 09:44:59 UTC 2007


Very nice. Off hand I used Bash as an example (without checking it,
oops :0) because I wasn't getting syntax highlighting in Erlang script
and thought it was too obscure. I'll try adding firstLineMatch to the
Erlang bundle. Thank you :)

On 8/22/07, Ciarán Walsh <ciawal at gmail.com> wrote:
>
> 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
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>



More information about the textmate mailing list