* Syntax: Extended the patterns for #! interpreters to match

almost everything that looks like the interpreter.
This commit is contained in:
Roland Illig 2005-05-24 09:38:27 +00:00
parent a3d00ca079
commit f9f0051c39
2 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1,4 @@
2005-05-24 Roland Illig <roland.illig@gmx.de>
* Syntax: Extended the patterns for #! interpreters to match
almost everything that looks like the interpreter.

View File

@ -29,16 +29,16 @@ include diff.syntax
file ..\*\\.lsm$ LSM\sFile
include lsm.syntax
file ..\*\\.sh$ Shell\sScript ^#!\s\*(/.\*/|/usr/bin/env\s\*)([abd-z]?|ba|pdk)sh
file ..\*\\.sh$ Shell\sScript ^#!.\*[\s/]([abd-z]?|ba|pdk)sh
include sh.syntax
file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!\s\*(/.\*/perl|@PERL@)
file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!.\*[\s/]perl
include perl.syntax
file ..\*\\.(py|PY)$ Python\sProgram ^#!\s\*/.\*/python
file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*[\s/]python
include python.syntax
file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!\s\*/.\*/ruby
file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*[\s/]ruby
include ruby.syntax
file ..\*\\.(man|[0-9n]|[0-9]x)$ NROFF\sSource
@ -142,4 +142,3 @@ include mail.syntax
file .\* unknown
include unknown.syntax