Fix formatting when keyword is parsed as part of a JSX identifier (e.g. module-layout) (#18598)

This commit is contained in:
Andy
2017-09-20 15:01:04 -07:00
committed by GitHub
parent 7dec4ae9d1
commit 4d2aa9bf2c
2 changed files with 12 additions and 2 deletions

View File

@@ -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>`);