atom / language-c

C support in Atom
Other
118 stars 152 forks source link

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

Open mason1920 opened 3 years ago

mason1920 commented 3 years ago

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