TypeStrong / atom-typescript

The only TypeScript package you will ever need
https://atom.io/packages/atom-typescript
MIT License
1.13k stars 205 forks source link

[Syntax Highlight] Typ and Function argument #1465

Closed senyaak closed 5 years ago

senyaak commented 5 years ago

If I have some Type declared in my file - and after that I use the same name as function argument the name get a wrapper with classes: syntax--support syntax--type This brake syntax highlight. Code to reproduce:

class Foo {}

function (
  bar: A, 
  Foo: number, 
  fn: string,
  A: null,
)  {

}

PS. The argument names which contain only 1 character - have the same problem

screenshot from 2018-11-15 13-48-28

lierdakil commented 5 years ago

Please see: https://github.com/TypeStrong/atom-typescript/blob/master/docs/faq.md#syntax-highlighting-is-bad TL;DR: We're not responsible for the syntax highlighting since a while ago. The relevant repo is https://github.com/atom/language-typescript