Merge pull request #1048 from DMClVG/patch-1
Add .cjs and .mjs for js syntax highlighting
This commit is contained in:
commit
1f4f2e52db
|
@ -3,7 +3,7 @@ local syntax = require "core.syntax"
|
|||
|
||||
syntax.add {
|
||||
name = "JavaScript",
|
||||
files = { "%.js$", "%.json$", "%.cson$" },
|
||||
files = { "%.js$", "%.json$", "%.cson$", "%.mjs$", "%.cjs$" },
|
||||
comment = "//",
|
||||
block_comment = { "/*", "*/" },
|
||||
patterns = {
|
||||
|
|
Loading…
Reference in New Issue