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 :

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'
// ~~~~~ ✅