Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Arrow in initializer list breaks syntax highlighting in C++ #198

@NOhs

Description

@NOhs

Description

I was sent here from the C++ extension issue tracker of vscode. I don't know if this is the right place to post this, but when using the -> operator in an initializer list in vscode C++ (which uses atom), the syntax highlighting gets mixed up.
cpp_broken_syntax_highlighting

As you can see in the image above, the c2, the 6 and the 0.0f are not highlighted.

cpp_broken_syntax_highlighting_2

In the second picture the numbers are highlighted again after the second arrow was removed

cpp_broken_syntax_highlighting_3

The syntax highlighting is correct after the first arrow is also removed.

Steps to Reproduce

Insert the code in the above screenshot into the editor.

Expected behavior: code in initalizer list is properly highlighted

Actual behavior: code after -> in initializer lists is not properly highlighted

Reproduces how often: 100%

Versions

vscode 1.8.1 (I don't know which atom version that is)
OS: Arch Linux (fully updated 25.01.2017)

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