mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 17:30:04 -05:00
Fix formatting when keyword is parsed as part of a JSX identifier (e.g. module-layout) (#18598)
This commit is contained in:
@@ -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