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 #8 received at 63810 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>,
 Theodor Thornhill <theo <at> thornhill.no>,
 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:21:50 +0300
> 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?




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.