racket / racket/syntax-color

scribble-lexer doesn't recognize | delimiter after unquote

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
8
Forks
16
PR merge metrics
No merged PRs in 30d

Description

This is a valid program:

#lang at-exp racket

'@{They sank like lead in the @i{mi@,|____|-ghty }@b{wa}@i{-ters:}}

However, the lexers from syntax-color/scribble-lexer incorrectly color |____|-ghty as an error token, like this:

Screen Shot 2021-03-30 at 9 16 13 PM

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 syntax-color/scribble-lexer entry point and reproduce the supplied #lang at-exp racket program. Trace how the lexer handles the | delimiter after an unquote, then verify that |____|-ghty is no longer classified as an error token.

Written by the indexing model from the issue text.

Assessment

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.