- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
I've come across an issue where the * as X
part of a import * as X from 'x'
line seems to be interpreted as a cast instead of an import by the regexes. This results in some slightly off highlighting:
The issues:
- the
as
is highlighted astypescriptCastKeyword
- the module (React, in this example) is highlighted as
typescriptTypeReference
Here's how I would expect it to be highlighted: (I achieved this by changing my syntax to JavaScript)
I'm pretty new to the world of vim syntax highlighting, but I'd guess the fix would be some regex wrangling. I'm happy to take a stab at it but figured I'd file this issue first to see if this is indeed a bug.
bfrg and rschristian
Activity