1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 13:40:05 +08:00
SpaceVim/bundle/nvim-treesitter/tests/query/highlights/c/enums-as-constants.c
2022-04-14 12:01:23 +08:00

22 lines
290 B
C
Vendored

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:
}
}