mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
26 lines
411 B
C++
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:
|
||
|
|
}
|
||
|
|
}
|