From d6d2dff324347dc7dab1d453ef17378c752b8a78 Mon Sep 17 00:00:00 2001 From: healther Date: Fri, 18 Aug 2017 20:57:52 +0200 Subject: sbang support: add node-js and fix lua This adds sbang hook support for node-js and fixes the sbang filter for lua (the character class exclusion was swallowing newlines and reporting a false positive if lua was mentioned anywhere in the file). --- bin/sbang | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/sbang') diff --git a/bin/sbang b/bin/sbang index 0b883a5feb..ce4df4327c 100755 --- a/bin/sbang +++ b/bin/sbang @@ -104,6 +104,8 @@ lines=0 while read line && ((lines < 2)) ; do if [[ "$line" = '#!'* ]]; then interpreter="${line#\#!}" + elif [[ "$line" = '//!'*node* ]]; then + interpreter="${line#//!}" elif [[ "$line" = '--!'*lua* ]]; then interpreter="${line#--!}" fi -- cgit v1.2.3-60-g2f50