Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript - Highlighting : Keywords treated as keywords when followed by alphabetic character #3000

Closed
oedotme opened this issue Jul 19, 2021 · 0 comments · Fixed by #3001
Closed

Comments

@oedotme
Copy link

oedotme commented Jul 19, 2021

Information

  • Language: TypeScript
  • Plugins: None
  • Version: 1.24.0

Description

Some TypeScript keywords such as infer and type are treated as keywords when followed by alphabetic character.

Expected highlighting :

import { infer, inference, infer } from 'module'
//              ~~~~~ ✅

import { type, typeDefs, type } from 'module'
//             ~~~~ ✅

import { const, constants, const } from 'module'
//              ~~~~~ ✅

Actual highlighting :

image

Code snippet

Test page

The code being highlighted incorrectly.
import { infer, inference, infer } from 'module'
//              ~~~~~ ❌

import { type, typeDefs, type } from 'module'
//             ~~~~ ❌

import { const, constants, const } from 'module'
//              ~~~~~ ✅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants