[llvm-bugs] [Bug 43085] New: .mjs files are not recognized as javascript
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 22 02:40:47 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43085
Bug ID: 43085
Summary: .mjs files are not recognized as javascript
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: fergald at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
.mjs is the extension for module-javascript. Module javascript is not
compatible with non-module java script as it uses the "export" and "import"
keywords which are only legal in module-javascript. As such it uses a different
file extension.
The fix seems to be to tweak FormatStyle::LanguageKind getLanguageByFileName in
lib/Format/Format.cpp .
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190822/a1e0729c/attachment-0001.html>
More information about the llvm-bugs
mailing list