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

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

bug#60689: 29.0.60; typescript-ts-mode and tsx-ts-mode does not highligh


From: Yuan Fu
Subject: bug#60689: 29.0.60; typescript-ts-mode and tsx-ts-mode does not highlight imports as variables [PATCH]
Date: Mon, 9 Jan 2023 20:07:29 -0800

Jostein Kjønigsen <jostein@secure.kjonigsen.net> writes:

> When importing packages/functions/whatever in typescript using 
> import-statements, the imported entities are not
> highlighted.
>
> This differs from when using require() syntax.
>
> import jwt from "jsonwebtoken";        // jwt -not- highlighted
> import { verify } from "jsonwebtoken"; // verify -not- highlighted
> const jwt = require("jsonwebtoken");   // jwt is highlighted.
>
> Attached is a patch which updates typescript-ts-mode and tsx-ts-mode to 
> highlight these imports properly.

Thanks! I applied the patch. I’ll add similar fixes to js-ts-mode.

Yuan





reply via email to

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