mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Add support for .mjs files
This commit is contained in:
parent
1aa64a86cf
commit
f83be0e1d7
|
@ -1,4 +1,4 @@
|
|||
syntax "JavaScript" "\.(js|ts)$"
|
||||
syntax "JavaScript" "\.(m?js|ts)$"
|
||||
comment "//"
|
||||
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
|
||||
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
### 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 @@
|
|||
|
||||
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
|
||||
|
||||
syntax "JavaScript" "\.(js)$"
|
||||
syntax "JavaScript" "\.(m?js)$"
|
||||
header "^#!.*\/(env +)node"
|
||||
comment "//"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user