Skip to content

Inheritance access specifier not colorized at linebreak #14

@ember91

Description

@ember91

Describe the bug

  • OS and Version: Ubuntu 18.04.2 LTS
  • VS Code Version: 1.31.1
  • Better C++ Syntax Extension Version: 1.4.11
  • Other extensions you installed (and if the issue persists after disabling them): C/C++. The issue persists after disabling it.
  • A clear and concise description of what the bug is: When linebreaking after an inheritance colon, the access specifier, such as 'public', is not colorized.

To Reproduce

  1. Create a new file with extension '.cpp'.
  2. Input the code below in the newly created file. Note the linebreak after the colon.
class B
{};

class A : 
  public B
{};
  1. Try removing the linebreak, writing 'public B' on the same line as 'class A'. The keyword is suddenly colorized.

Expected behavior
The 'public' keyword should be colorized regardless if there is a linebreak or not.

Screenshots
screenshot from 2019-03-08 15-36-37

Additional context
This issue exists with default VS code highlighting as well.

Metadata

Metadata

Assignees

Labels

🐛 BugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions