aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/wing/class.w
blob: 9f76b16e8b2ab9d44ca7ba99df3c10c5a432af95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
bring cloud;
// <- @keyword

class Foo {
// <- @keyword.type
//    ^   @type
//        ^ @punctuation.bracket
  name: str;
//^    @variable.member
//      ^   @type.builtin
//         ^ @punctuation.delimiter
  new(name:  str) {
//^    @keyword
//    ^    @variable
    this.name = name;
//      ^ @punctuation.delimiter
//            ^ @operator
  }
}