unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63810: 29.0.91; typescript-ts-mode grammar missing the "is" keyword
@ 2023-05-31  7:30 Jimmy Yuen Ho Wong
  2023-05-31 12:21 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Jimmy Yuen Ho Wong @ 2023-05-31  7:30 UTC (permalink / raw)
  To: 63810


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)





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-01 11:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31  7:30 bug#63810: 29.0.91; typescript-ts-mode grammar missing the "is" keyword Jimmy Yuen Ho Wong
2023-05-31 12:21 ` Eli Zaretskii
2023-05-31 13:20   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-31 18:51     ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-01 11:58       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).