Skip to content

Comment /* */ parsing should ignore these sequences in string constants [imported] #817

Closed
@cmaglie

Description

@cmaglie

This is Issue 817 moved from a Google Code project.
Added by 2012-02-15T22:44:16.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

What steps will reproduce the problem?
1 Use /* or / in a string, eg Serial.println("Accept: */");
2.Compile, and you'll see the error
java.lang.RuntimeException: Missing the / from the end of a / comment */

What is the expected output? What do you see instead?
You would expect that the / and / sequences contained within strings would not be parsed as incomplete comments, however an error : java.lang.RuntimeException: Missing the / from the end of a / comment */ occurs and the compile fails.

What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using? IDE v1.0, Windows 7 64bit, Arduino Uno compatible (Freetronics Ten or Uno clones)

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions