Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some keywords (type, CONSTANT) are not properly coloured in editor #380

Open
3 tasks done
ubidefeo opened this issue May 18, 2021 · 3 comments
Open
3 tasks done

Some keywords (type, CONSTANT) are not properly coloured in editor #380

ubidefeo opened this issue May 18, 2021 · 3 comments
Assignees
Labels
criticality: medium Of moderate impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@ubidefeo
Copy link

ubidefeo commented May 18, 2021

Describe the problem

The IDE uses a standard C++ syntax highlighting system. The result is that some keywords/types/CONSTANTS that are specific to the Arduino programming language do not get syntax highlighting in the Arduino IDE editor.

Examples include:

  • byte
  • OUTPUT
  • INPUT
  • INPUT_PULLUP
  • LOW
  • HIGH

To Reproduce

Steps to reproduce the behavior:

  1. Create a Sketch
  2. Replace its content with the following
    byte myNumber = 0;
    void setup() {
      pinMode(LED_BUILTIN, OUTPUT);
      pinMode(3, INPUT);
    }
    void loop() {
      digitalWrite(LED_BUILTIN, HIGH);
      delay(500);
      digitalWrite(LED_BUILTIN, LOW);
      delay(500);
    }

Expected behavior

Syntax highlighting is provided for all keywords of the Arduino programming language.

Arduino IDE version

2.0.0-beta.7

Operating system

All

Additional context

Note that highlighting for many of the Arduino language keywords are already provided by the C++ highlighter. No special treatment for those keywords is necessary.


Also reported at:

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@ubidefeo ubidefeo added type: bug priority: medium Resolution is a medium priority labels May 18, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 25, 2021
@rsora rsora added criticality: medium Of moderate impact and removed priority: medium Resolution is a medium priority labels Nov 2, 2021
@mklemarczyk

This comment was marked as off-topic.

@eMUQI

This comment was marked as off-topic.

@per1234 per1234 changed the title Monaco editor: some keywords (type, CONSTANT) are not properly coloured Some keywords (type, CONSTANT) are not properly coloured in editor Jul 22, 2023
@60-hz

This comment was marked as off-topic.

@arduino arduino locked as too heated and limited conversation to collaborators Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
criticality: medium Of moderate impact topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

8 participants