We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b73a7fd + 30a1492 commit b4b5543Copy full SHA for b4b5543
javascript.nanorc
@@ -1,4 +1,4 @@
1
-syntax "JavaScript" "\.(js|ts)$"
+syntax "JavaScript" "\.(m?js|ts)$"
2
comment "//"
3
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
4
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
js.nanorc
-### all *js files ( e.g. Firefox user.js, prefs.js )
+### all *js and *mjs files ( e.g. Firefox user.js, prefs.js )
## Old version
@@ -12,7 +12,7 @@
12
13
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
14
15
-syntax "JavaScript" "\.(js)$"
+syntax "JavaScript" "\.(m?js)$"
16
header "^#!.*\/(env +)node"
17
18
0 commit comments