PrismJS / PrismJS/prism

$s in perl seems to break highlighting

Open
#3,684 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Information:

  • Prism version: I assume the latest given it is the demo page that can reproduce it

Description
I noticed this first in my use of it, but was able to replicate it on the demo page:

image

Example
image

Change the $s to $e and highlighting then works again.

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 with the Perl example on the Prism demo page and compare the highlighted output when the variable changes from $s to $e. Trace the Perl grammar used by the demo and reproduce the failure in its existing tests; done means both forms receive correct highlighting.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.