Skip to content

Line continuation character ignored by syntax highlighting #5888

@septillion-git

Description

@septillion-git

The line continuation character \ is not parsed by the syntax highlighting if it's part of a line comment.

// I start a comment on this line but I end with the line continuation character \
byte test = 5; //This WHOLE line is a comment because of the line continuation character on the last line

//The byte test is thereby NOT declared but the syntax highlighting of the IDE does not display it as comment

This way it's easy for a newbie to do this without knowing what's wrong. If the line was highlighted as comment the error would have been more clear.

Link to a case where it happened:
http://forum.arduino.cc/index.php?topic=449738.0

Activity

facchinm

facchinm commented on Jan 20, 2017

@facchinm
Member

The feature you are requesting should be implemented by RSyntaxTextArea, the Java library we use as text editor.
Reopening the issue there will surely boost the visibility of this issue. Thanks for reporting!

septillion-git

septillion-git commented on Jan 20, 2017

@septillion-git
Author

Thanks for pointing me to RSTA! You talk about a closed (but unfixed) issue over at RSTA, I can't find it, do you have by any change the issue number?

facchinm

facchinm commented on Jan 23, 2017

@facchinm
Member

Sorry @septillion-git , I meant "file a new issue there about the same topic" 😄 Thanks!

septillion-git

septillion-git commented on Jan 23, 2017

@septillion-git
Author

Thanks! I will :)

Quick other question, is it by design that c-style strings are not highlighted anymore? On 1.6.4 they turn blue, on 1.8.1 nothing happens to them. Or is that a RSTA bug as well?

septillion-git

septillion-git commented on Jan 25, 2017

@septillion-git
Author

RSTA fixed the bug :) Hopefully it's implemented in the IDE quick .

Still remain the question about strings...

facchinm

facchinm commented on Jan 25, 2017

@facchinm
Member

As soon as 2.6.1 gets released we'll import it in the IDE! Thanks for pushing this!

added a commit that references this issue on Feb 7, 2017
7562ee9
ghost assigned on Feb 7, 2017
ghost added
in progressWork on this item is in progress
on Feb 7, 2017
added a commit that references this issue on Feb 14, 2017
3bda584
added 3 commits that reference this issue on Feb 24, 2017
2f5867b
948c271
328be09
ghost removed
in progressWork on this item is in progress
on Mar 1, 2017
added this to the Release 1.8.2 milestone on Mar 1, 2017
added a commit that references this issue on May 30, 2024
f5eb673
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @cmaglie@facchinm@septillion-git

      Issue actions

        Line continuation character ignored by syntax highlighting · Issue #5888 · arduino/Arduino