GNU nano - Bugs: bug #65334, [Wish] recognize also the...
You are not allowed to post comments on this tracker with your current authentication level.
bug #65334: [Wish] recognize also the ".mjs" extension, and add a `magic` command
Submitter: | Matt Whitlock <mwhitlock> | ||
Submitted: | Tue 20 Feb 2024 05:29:58 AM UTC | ||
Severity: | 1 - Wish | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Open |
Tue 20 Feb 2024 04:09:33 PM UTC, comment #1: |
Benno Schulenberg <bens> |
Tue 20 Feb 2024 05:29:58 AM UTC, original submission:
Please add the ".mjs" filename extension to the javascript.nanorc syntax config. The V8 project recommends this extension for JavaScript modules and adds:
|
Matt Whitlock <mwhitlock> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2024-02-20 | bens | Summary | javascript.nanorc should recognize ".mjs" extension and also support libmagic | [Wish] recognize also the ".mjs" extension, and add a `magic` command | |
2024-02-20 | bens | Severity | 3 - Normal | 1 - Wish | |
Status | None | Fixed | |||
Assigned to | None | bens |
Powered by Savane 3.13-02a9.
Corresponding source code
Okay. Fixed in git, commit f1a04f78.
My version of `file` (5.41) still describes JavaScript files as "ASCII text". But I see that the latest version contains the string "JavaScript source". So I've added that.
(By the way, when the `extendsyntax` command cannot do what you want, you can always completely redefine a syntax. Not economical, but it works.)