[vim/vim] TypeScript syntax highlighting is going to wrong in case `import { type` syntax (Issue #11652)

103 views
Skip to first unread message

aiya000

unread,
Dec 2, 2022, 7:48:06 AM12/2/22
to vim/vim, Subscribed

Steps to reproduce

  1. `vim -u NONE Test.ts
  2. Write import { type Foo } from './foo' at top
  3. :syntax on

Expected behaviour

TypeScript syntax highlighting is not broken.

Version of Vim

version 9.0.985

Environment

Operating System: Windows11 WSL2
Terminal: wsltty

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11652@github.com>

aiya000

unread,
Dec 2, 2022, 7:49:17 AM12/2/22
to vim/vim, Subscribed

image


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11652/1335181117@github.com>

aiya000

unread,
Dec 2, 2022, 8:03:12 AM12/2/22
to vim/vim, Subscribed

NOTE: import { type syntax is here :D
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11652/1335197202@github.com>

Christian Brabandt

unread,
Dec 2, 2022, 11:23:19 AM12/2/22
to vim/vim, Subscribed

ping @HerringtonDarkholme


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11652/1335498618@github.com>

Herrington Darkholme

unread,
Dec 2, 2022, 9:12:45 PM12/2/22
to vim/vim, Subscribed

This is already fixed in yats. see HerringtonDarkholme/yats.vim#251

image


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11652/1336014145@github.com>

Bram Moolenaar

unread,
Dec 3, 2022, 5:24:21 AM12/3/22
to vim/vim, Subscribed

@HerringtonDarkholme could you make an update for the Vim files, the flattened way?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/11652/1336129693@github.com>

Reply all
Reply to author
Forward
0 new messages