Skip to content

Commit

Permalink
Add .mjs to JavaScript syntax (close #1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Nov 26, 2024
1 parent 1330884 commit 59d4a0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

- Add insertion points only at the same number of wrapped lines by rectangular selection.
- Update the document’s syntax when the document was renamed in the file browser.
- Update JavaScript syntax to add .mjs file extension.


### Fixes
Expand Down
1 change: 1 addition & 0 deletions CotEditor/Resources/SyntaxMap.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
"JavaScript" : {
"extensions" : [
"js",
"mjs",
"pac"
],
"filenames" : [
Expand Down
1 change: 1 addition & 0 deletions CotEditor/Resources/Syntaxes/JavaScript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ comments:
completions: []
extensions:
- keyString: js
- keyString: mjs
- keyString: pac
filenames: []
interpreters: []
Expand Down

0 comments on commit 59d4a0a

Please sign in to comment.