nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f1a04f780afd39d7e891f90c26dfbddb0278c71e
parent eca5856d999f4be8edec7120109fe272d24027e0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 20 Feb 2024 16:44:42 +0100

syntax: javascript: recognize also the .mjs extension

The V8 JavaScript-engine developers recommend using this extension:
  https://v8.dev/features/modules#mjs

Also, add the fairly new "JavaScript source" as magic description.

This fulfills https://savannah.gnu.org/bugs/?65334.
Requested-by: Matt Whitlock <gnu@mattwhitlock.name>

Diffstat:
Msyntax/javascript.nanorc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc @@ -1,6 +1,7 @@ ## Syntax highlighting for Javascript. -syntax javascript "\.js$" +syntax javascript "\.m?js$" +magic "JavaScript source" comment "//" # Declarational stuff.