Skip to content

single-line comments break highlighting on the next line #79

@AdamRaichu

Description

@AdamRaichu

On GitHub.com, C++ code is incorrectly highlighted after a line that contains a // comment.

Example code demonstrating the problem:

const byte hello = 1;  // This is a comment
const byte world = 2;  // `const` should be highlighted, but it is not

const byte foo = 3; /* This problem does not occur with multiline comments. */
/* Multiple
lines */
const byte bar = 4;

// This comment breaks highlighting as well.
const byte a = 5;
const byte b = 6;

// This also breaks highlighting in other ways
int main() {}

int test() {}

// Even this breaks
x_y();

y_z();

// Another example
a_z(); a_z();

Reporting here because of instructions in this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions