processing / processing/p5.js-web-editor

Keyword Syntax highlighting still outdated

Open
#3,163 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Good First Issue Priority:Medium Type:Task
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

p5.js version

1.9.4

What is your operating system?

Linux

Web browser and version

Firefox 126.0

Actual Behavior

A few new p5.js function like beginClip are not being highlighted.
https://github.com/processing/p5.js-web-editor/blob/develop/client/utils/p5-keywords.js was last updated c. #1873 and hasn't been touched since.

Expected Behavior

All p5.js functions are highlighted correctly.
client/utils/p5-keywords.js is automatically generated when building the p5 editor and never drifts out of sync, or is at least kept in sync whenever the editor switches to the latest p5 version.

Steps to reproduce
Steps:
  1. Open https://editor.p5js.org
  2. Write beginClip()
  3. beginClip is not bolded like the other built-in functions.

Contributor guide

Open the contributing guide

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 client/utils/p5-keywords.js and reproduce the issue in the web editor using beginClip(). Trace how the keyword list is generated or updated for the current p5.js version. Done means beginClip and other current p5.js functions receive the same syntax highlighting without the keyword list drifting out of sync.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, 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.