processing / processing/p5.js-web-editor
Keyword Syntax highlighting still outdated
Nobody has claimed this yet.
- 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:
- Open https://editor.p5js.org
- Write
beginClip() beginClipis not bolded like the other built-in functions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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