language-typescript icon indicating copy to clipboard operation
language-typescript copied to clipboard

syntax highlighting issues.

Open chrisdrackett opened this issue 5 years ago • 0 comments

Prerequisites

Description

I've recently been forced to switch from language-babel to language-typescript due to my language-babel no longer working with atom-typescript for some reason. The biggest thing I've noticed since making the switch is that the syntax highlighting for this grammar seems far behind that I had in language-babel. Some of the things I've seen so far:

  1. upper and lowercase variable names are styled differently:
Babel Typescript
babel typescript
  1. Same for variables inline:
Babel Typescript
babel typescript
  1. Types don't have the same level of detail so its impossible to style them much differently:
Babel Typescript
babel typescript

At first I thought this was an issue with my syntax theme, but on inspecting the CSS I found that most of these issues are due to the text not being tagged at all thus it is impossible to style things correctly.

For example the following is from babel:

<span class="syntax--variable syntax--other syntax--readwrite syntax--js">iconColor</span>

where as in typescript I get:

iconColor

no wrapper at all.

chrisdrackett avatar Jan 17 '20 02:01 chrisdrackett