pygments / pygments/pygments

Unicode characters in CoffeeScript (and similar) lexers

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

Nobody has claimed this yet.

S-minor T-bug X-imported
Dominant language
Python
Stars
2.2k
Forks
885
PR merge metrics
No merged PRs in 30d

Description

(Original issue 1108 created by ugoertz on 2015-04-30T14:17:22.634710+00:00)

It would be good to use the JS_IDENT expression used in the JavaScript lexer to detect identifiers (cf. issue #999) also in CoffeeScript (and maybe some/all of the other languages in the javascript.py lexer file). Thanks!

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 lexers/javascript.py and the JS_IDENT expression, then inspect the CoffeeScript lexer and issue #999 for scope. Done means Unicode identifiers are recognized in CoffeeScript and any clearly applicable sibling lexers without regressing existing lexer behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.