There should be alternative patterns per language.
Then you could make "/python", "/env python", "/pythond" etc. point
to the same language Python.
Then this won't work:
#!/usr/bin/env PYTHONPATH=/usr/lib/gac python
I think this is uncommon.
If you often work with such files, when just add
the "#!/usr/bin/env PYTHONPATH=/usr/lib/gac python" pattern.
You can also provide examples where the python interpreter is
called perl, or something like:
#!/usr/bin/env PATH=/usr/local/perl-5.8.6/bin:/usr/bin python
(a Python script that calls a particular version of Perl
on a machine with multiple Perl installations)
or:
#!/usr/bin/env SHELL=/bin/zsh perl
(Perl code follows)
With my method you can add whole these lines to match the real language.
I don't think you can reliable detect them by looking at the first line.
GCC headers use emacs tags.
With my method just add the pattern "-*-mode: C++;-*-"
or whatever the tag looks like.
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest