[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#63810: 29.0.91; typescript-ts-mode grammar missing the "is" keyword
From: |
Theodor Thornhill |
Subject: |
bug#63810: 29.0.91; typescript-ts-mode grammar missing the "is" keyword |
Date: |
Wed, 31 May 2023 20:51:59 +0200 |
Theodor Thornhill <theo@thornhill.no> writes:
> On 31 May 2023 14:21:50 CEST, Eli Zaretskii <eliz@gnu.org> wrote:
>>> From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
>>> Date: Wed, 31 May 2023 08:30:14 +0100
>>>
>>> 1. C-x C-f test.ts
>>> 2. Insert
>>> ```typescript
>>> function isFish(pet: Fish | Bird): pet is Fish {
>>> return (pet as Fish).swim !== undefined;
>>> }
>>> ```
>>> 3. Observe the `is` keyword isn't highlighted.
>>>
>>> Expectation:
>>>
>>> TypeScript has a concept called type predicates, which introduces a
>>> keyword called `is`.
>>
>>Thanks.
>>
>>Can you guys please look into this?
>
> Thanks for the ping. Will look into it this evening.
>
> Theo
Now fixed on emacs-29.
Thanks again for the ping :)
Theo