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

26 lines
411 B
C++

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