aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/c/enums-as-constants.c
blob: 8e6474466ba396d6c4a29eb91e660054304a2529 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
enum Foo{
    a,
//  ^ @constant
    aa,
//  ^ @constant
    C,
};

void foo(enum Foo f){
    switch ( f ) {
        case a:
         //  ^ @constant
            break;
        case aa:
         //  ^ @constant
            break;
        case C:
            break;
        default:
    }
}