Recognizing also header lines that use "/usr/bin/env" to call
the program, instead of just a direct call via "/bin/program". Doing this for Shell scripts, and for Python, Perl and Ruby. This fixes Savannah bug #43270 reported by Kitty. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5095 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## Here is an example for Python.
|
||||
|
||||
syntax "python" "\.py$"
|
||||
header "^#!.*/python[-0-9._]*"
|
||||
header "^#!.*python[-0-9._]*"
|
||||
|
||||
# Function definitions.
|
||||
icolor brightblue "def [0-9A-Z_]+"
|
||||
|
||||
Reference in New Issue
Block a user