--- Begin Message ---
Subject: |
29.0.91; typescript-ts-mode grammar missing the "is" keyword |
Date: |
Wed, 31 May 2023 08:30:14 +0100 |
Reproduction:
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`.
[Reference](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#63810: 29.0.91; typescript-ts-mode grammar missing the "is" keyword |
Date: |
Thu, 01 Jun 2023 14:58:48 +0300 |
> From: Theodor Thornhill <theo@thornhill.no>
> Cc: 63810@debbugs.gnu.org
> Date: Wed, 31 May 2023 20:51:59 +0200
>
> Now fixed on emacs-29.
Thanks, closing.
--- End Message ---