mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 22:29:42 +03:00
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>
This commit is contained in:
parent
eca5856d99
commit
f1a04f780a
@ -1,6 +1,7 @@
|
|||||||
## Syntax highlighting for Javascript.
|
## Syntax highlighting for Javascript.
|
||||||
|
|
||||||
syntax javascript "\.js$"
|
syntax javascript "\.m?js$"
|
||||||
|
magic "JavaScript source"
|
||||||
comment "//"
|
comment "//"
|
||||||
|
|
||||||
# Declarational stuff.
|
# Declarational stuff.
|
||||||
|
Loading…
Reference in New Issue
Block a user