GNU bug report logs - #63810
29.0.91; typescript-ts-mode grammar missing the "is" keyword

Previous Next

Package: emacs;

Reported by: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>

Date: Wed, 31 May 2023 07:31:02 UTC

Severity: normal

Found in version 29.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 63810 <at> debbugs.gnu.org (full text, mbox):

From: Theodor Thornhill <theo <at> thornhill.no>
To: Eli Zaretskii <eliz <at> gnu.org>, Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>,
 Jostein Kjonigsen <jostein <at> kjonigsen.net>, Yuan Fu <casouri <at> gmail.com>
Cc: 63810 <at> debbugs.gnu.org
Subject: Re: bug#63810: 29.0.91; typescript-ts-mode grammar missing the "is" keyword
Date: Wed, 31 May 2023 15:20:00 +0200

On 31 May 2023 14:21:50 CEST, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Jimmy Yuen Ho Wong <wyuenho <at> 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




This bug report was last modified 1 year and 355 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.