PrismJS / PrismJS/prism

TypeScript: Not highlighting custom class / interface types

Open
#1,401 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement language-definitions
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Using: prismjs@1.14.0

Does not continue to highlight custom class / interface types after they are initially defined.

Example, BigData is not highlighted:

image

Also, a StackBlitz.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the TypeScript example from the issue or its linked StackBlitz and inspect how custom class and interface names are highlighted after their definitions. Done means names such as BigData continue to receive the expected highlighting in the reproduced case, with a regression test covering it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.