From 2d306130342ed87a470b1319c5d5396d682d56ca Mon Sep 17 00:00:00 2001
From: Mooffie <mooffie@gmail.com>
Date: Thu, 14 Jul 2016 06:35:59 +0300
Subject: [PATCH] mcedit: syntax: associate node executables with JavaScript
syntax.
Some distros name the binary 'nodejs', some 'node'.
---
misc/syntax/Syntax.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/syntax/Syntax.in b/misc/syntax/Syntax.in
index e970c3e..35a61e4 100644
a
|
b
|
include properties.syntax |
124 | 124 | file ..\*\\.(cs|CS)$ C\#\sProgram |
125 | 125 | include cs.syntax |
126 | 126 | |
127 | | file ..\*\\.(js|JS)$ JavaScript\sProgram |
| 127 | file ..\*\\.(js|JS)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b |
128 | 128 | include js.syntax |
129 | 129 | |
130 | 130 | file ..\*\\.(as|AS)$ ActionScript\sProgram |