dcf8bf5606
- add --docdir so that :help works - add --verbose - fix a bug in the ")" command that could cause a segfault - fix a bug when lauching elvis in a directory containing a "tags" dir - make file/syntax detection work for scripts using "env" - add "return" to the list of shell script keywords - fix a few things in the man pages (\-, typo, whitespace) since we were already patching them.
17 lines
612 B
Plaintext
17 lines
612 B
Plaintext
$OpenBSD: patch-data_elvis_arf,v 1.1 2012/05/05 14:03:15 sthen Exp $
|
|
|
|
Make file/syntax detection work for scripts that use env
|
|
in their shebang line. From Debian.
|
|
|
|
--- data/elvis.arf.orig Tue Oct 21 04:32:25 2003
|
|
+++ data/elvis.arf Sat May 5 13:40:29 2012
|
|
@@ -10,6 +10,8 @@ then {
|
|
if os=="unix" && buflines >= 1
|
|
then {
|
|
try 1s/\V^#! *[^ ]*\/\([^ ]\+\).*/set! bufdisplay="syntax \1"/x
|
|
+ if bufdisplay=="syntax env"
|
|
+ then try 1s/\V^#! *[^ ]*\/[^ ]\+ \([^ ]\+\).*/set! bufdisplay="syntax \1"/x
|
|
if bufdisplay<<11=="syntax perl"
|
|
then set! bufdisplay="syntax perl"
|
|
if bufdisplay<<12=="syntax tclsh"
|