ports/editors/elvis/patches/patch-data_elvis_arf

14 lines
542 B
Text

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"