PrismJS / PrismJS/prism

char, float and short don't get highlighted as a data type

Open
#3,724 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

language-definitions
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Information

  • Language: Arduino
  • Plugins: Prismatic

Description
char, float and short are datatypes in c++ and also arduino, but the prism.js dont recoginze them as a datatype.

Code snippet
Test page

The code being highlighted incorrectly.
char character = 'A';
float test = 9.99;
short num = 1;

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 Arduino example on the Prism test page linked in the issue and compare the highlighting of char, float, and short with the provided snippet. Trace the Arduino language definition and its related tests from there. Done means all three types are highlighted as data types without regressing the existing example.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.