Skip to content
This repository has been 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

Open
1 task done
mason1920 opened this issue Aug 29, 2020 · 0 comments
Open
1 task done

Comments

@mason1920
Copy link

mason1920 commented Aug 29, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant