emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63810: closed (29.0.91; typescript-ts-mode grammar missing the "is"


From: GNU bug Tracking System
Subject: bug#63810: closed (29.0.91; typescript-ts-mode grammar missing the "is" keyword)
Date: Thu, 01 Jun 2023 11:59:02 +0000

Your message dated Thu, 01 Jun 2023 14:58:48 +0300
with message-id <83fs7bcs1z.fsf@gnu.org>
and subject line Re: bug#63810: 29.0.91; typescript-ts-mode grammar missing the 
"is" keyword
has caused the debbugs.gnu.org bug report #63810,
regarding 29.0.91; typescript-ts-mode grammar missing the "is" keyword
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63810: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63810
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]