atom / language-typescript

TypeScript language package for Atom
Other
21 stars 33 forks source link

JSX Fragments Not Supported #19

Open lukescott opened 6 years ago

lukescott commented 6 years ago

Prerequisites

Description

JSX Fragments are not supported.

Steps to Reproduce

  1. Open a new file and set file type to TypeScriptReact
  2. Input code const fragment = <></>

Expected behavior:

Syntax should be supported and shouldn't show as invalid characters.

What Babel ES6 JavaScript does:

screen shot 2018-03-21 at 1 52 41 pm

Actual behavior:

Syntax is not supported and shows as invalid.

What TypeScriptReact does:

screen shot 2018-03-21 at 1 52 15 pm

Reproduces how often: Always.

Versions

Atom : 1.25.0 Electron: 1.7.11 Chrome : 58.0.3029.110 Node : 7.9.0 apm 1.19.0 npm 3.10.10 node 6.9.5 x64 atom 1.25.0 python 2.7.10 git 2.13.2 os OS X 10.12.2

Additional Information

JSX Fragments are currently supported in TypeScript 2.6. Closed issue https://github.com/Microsoft/TypeScript/issues/19094.

igor10k commented 6 years ago

looks like the JSX fragment issue was fixed in the original grammar long time ago (https://github.com/Microsoft/TypeScript-TmLanguage/pull/535) but the changes were never copied to this repo

gavinlight commented 5 years ago

Any updates on this? It's been a year and it's still not working

bigidea-kz commented 5 years ago

OMG 23.05.2019 fragment not supported in atom )))))))))))))))))))))))))))) Crazy?

GaddMaster commented 3 years ago

any update ?