aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/wing/class.w
blob: c210fc611f441c05eb6726defb2ae9be56e9047a (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
//    ^   @variable
//        ^ @punctuation.bracket
  name: str;
//^    @variable.member
//      ^   @type.builtin
//         ^ @punctuation.delimiter
  new(name:  str) {
//^    @keyword
//    ^    @variable
    this.name = name;
//      ^ @punctuation.delimiter
//            ^ @operator
  }
}