Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Missing scope on colons #294

Closed
chbk opened this issue Oct 21, 2018 · 0 comments · Fixed by #303
Closed

Missing scope on colons #294

chbk opened this issue Oct 21, 2018 · 0 comments · Fixed by #303

Comments

@chbk
Copy link

chbk commented Oct 21, 2018

: aren't scoped in the examples below. I suggest the following:

punctuation.definition.type.colon

enum class Color : char {red, green, blue};

punctuation.definition.visibility.colon (line 3)

class Rectangle {
  int width, height;
  public:
    int area() {
      return width*height;
    }
};

punctuation.definition.inheritance.colon

class Rectangle: public Polygon {};

punctuation.separator.method.double-colon for :: and punctuation.definition.initialization.colon for :

Rectangle::Rectangle (int x, int y) : width(x), height(y) {}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant