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

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