mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix formatting when keyword is parsed as part of a JSX identifier (e.g. module-layout) (#18598)
This commit is contained in:
1 parent
7dec4ae9d1
commit
4d2aa9bf2c
2 files changed
+12
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// Test that we don't crash when encountering a keyword in a JSX identifier.
|
||||
|
||||
// @Filename: /a.tsx
|
||||
////<div module-layout=""></div>
|
||||
|
||||
format.document();
|
||||
verify.currentFileContentIs(`<div module-layout=""></div>`);
|
||||
Reference in new issue
Block a user