PrismJS / PrismJS/prism

Extended Symbols in Scheme

Open
#3,766 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: [e.g. 1.14, latest from the download page, etc.]: 1.29.0
  • Plugins: [a list of plugins you are using or 'none']: none
  • Environment: [e.g. Browser, Node, Webpack]: Browser

Description
Scheme symbols with space are not handled properly.

Example
This is an example of the different syntax for symbols |foo bar| (this is a single symbol).

Bigger example:

(list '|foo bar| 10)

Only '|foo is marked as a symbol the rest bar| is marked as a name. (The same happens for GitHub linguist but its language definition is pretty outdated. Most of the new R7RS syntax is not supported).

If you accept PR for version 1.x I can see if I provide the fix for the Scheme language file.

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 Prism's Scheme language definition and inspect how symbols containing spaces are handled. Use the examples |foo bar| and (list '|foo bar| 10) as the expected highlighting cases, then verify that the complete symbol is marked as one symbol in a browser.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.