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.

namespace marker "::" breaks bracket highlights when after "operator" with a return stament containing more than one token #344

@SoAsEr

Description

@SoAsEr

if I type

class test{
  operator namespace::type() const{
    return a+b;
  }
};

then the bracket after the return statement is parsed as belonging to test{ and "return" is not highlighted
if I only have one token in the return statement, like this:

class test{
  operator namespace::type() const{
    return a;
  }
};

then the close bracket is parsed correctly, but "return" is still not highlighted
Removing the namespace:

class test{
  operator type() const{
    return a+b;
  }
};

fixes both issues

The incorrect parsing of this bracket causes the rest of the file to be incorrectly parsed as well.

This might be related to #260.

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