From 15d54a8cc51c143afbcb229ee7d1595171cb94b1 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 18 Mar 2020 14:45:31 +1300 Subject: [PATCH 1/2] feat(ts): add header regex --- ts.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/ts.nanorc b/ts.nanorc index bab8652..1a8d85c 100644 --- a/ts.nanorc +++ b/ts.nanorc @@ -1,4 +1,5 @@ syntax "typescript" "\.(ts)$" +header "^#!.*\/(env +)ts-node" ## Default color white "^.+$" From d573d03ccf9441be4bf3dd3166b977ae000a7d13 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 18 Mar 2020 14:46:45 +1300 Subject: [PATCH 2/2] feat(js): add header regex --- js.nanorc | 1 + 1 file changed, 1 insertion(+) diff --git a/js.nanorc b/js.nanorc index 3d484ba..a986743 100644 --- a/js.nanorc +++ b/js.nanorc @@ -13,6 +13,7 @@ ## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting syntax "JavaScript" "\.(js)$" +header "^#!.*\/(env +)node" comment "//" ## Default