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.

Implicit Conversion to Pointer to Type with Name >= 5 chars Breaks Highlighting (C++) #352

@mason1920

Description

@mason1920

Prerequisites

Description

When an implicit conversion member function is made to a type with a name longer than 4 characters, the rest of the class following the end of the function is grayed out.

Steps to Reproduce

  1. Create a new file with C++ syntax highlighting
  2. Place the following code in the file:
struct Hello {
  // Try getting rid of the asterisk, or making "world" one letter shorter.
  operator World*()
  {
    return convert_to_world(this);
  }

  this_should_be_blue this_should_be_red = but_everything_is_just_gray
};

Versions

1.43.0
Debian 10

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